You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the current master-image we got the errror error creating pidfile: open /var/run/carbon-relay-ng.pid: read-only file system and carbon-relay-ng was unable to start. Our container runs with podman and is marked as read_only, the solution was to add /var/run as a tmpfs so the container could write there(--mount type=tmpfs,destination=/var/run).
I suspect this error is related to using the distroless image(e216f17). Does anyone have a clue why the distroless-based image wants to write /var/run/carbon-relay-ng.pid and the alpine-based image didn't?
It's fine for us to add the mount, we are just curious what happened.
The container is controlled via systemd, this is our fixed unit file, which is created via ansibles podman_container-module:
First of all thanks for posting here the working configuration for you 👏
/var/run is typically a symbolic link to /run, here is an example
❯ docker run -it alpine ls -l /var/run
lrwxrwxrwx 1 root root 6 Dec 5 12:20 /var/run -> ../run
However /var/run has been for a long time the place to create the pid files. New linux systems are just writing them to /run and thats probably what Alpine was doing.
The new distroless image is based on debian and it must be writing the pid file to /var/run hence the issue you found.
Let me know if there is anything else you'd like to do in this issue.
Thank you for the explanation.
In the initial example the container is started with --read-only-tmpfs which mounts /run as a writeable tmpfs.
so even without the extra --mount option, this should not have bin a problem? 🤔
With the current master-image we got the errror
error creating pidfile: open /var/run/carbon-relay-ng.pid: read-only file system
and carbon-relay-ng was unable to start. Our container runs with podman and is marked as read_only, the solution was to add/var/run
as a tmpfs so the container could write there(--mount type=tmpfs,destination=/var/run
).I suspect this error is related to using the distroless image(e216f17). Does anyone have a clue why the distroless-based image wants to write
/var/run/carbon-relay-ng.pid
and the alpine-based image didn't?It's fine for us to add the mount, we are just curious what happened.
The container is controlled via systemd, this is our fixed unit file, which is created via ansibles podman_container-module:
The text was updated successfully, but these errors were encountered: