Adding a file volume by name then moving and recreating file on host #21406
Unanswered
adam-kiss-sg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use podman 3.4.4 (latest version on ubuntu 22), to run a rootless container that ships syslog logs to grafana. The syslog file is mounted to the container with
-v /var/log:/var/log:ro --group-add keep-groups
.When the syslog file is rotated on the host, the volume mount keeps pointing to the renamed file, eg:
On the host, after rotation there are two files:
Inside the container, there is
/var/log/syslog
, but it actually shows the content of/var/log/syslog.1
on the host.Is there any way to mount the file in a way, that it updates when the file is moved and recreated?
Beta Was this translation helpful? Give feedback.
All reactions