mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
Switch references of /var/run -> /run
Systemd is now complaining or mentioning /var/run as a legacy directory. It has been many years where /var/run is a symlink to /run on all most distributions, make the change to the default. Partial fix for https://github.com/containers/podman/issues/8369 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@@ -344,7 +344,7 @@ After creating a container with Podman's storage directories mounted in from the
|
||||
|
||||
When running Podman inside a container, it is recommended to mount at a minimum `/var/lib/containers/storage/` as a volume.
|
||||
Typically, you will not mount in the host version of the directory, but if you wish to share containers with the host, you can do so.
|
||||
If you do mount in the host's `/var/lib/containers/storage`, however, you must also mount in the host's `/var/run/libpod` and `/var/run/containers/storage` directories.
|
||||
If you do mount in the host's `/var/lib/containers/storage`, however, you must also mount in the host's `/run/libpod` and `/run/containers/storage` directories.
|
||||
Not doing this will cause Podman in the container to detect that temporary files have been cleared, leading it to assume a system restart has taken place.
|
||||
This can cause Podman to reset container states and lose track of running containers.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user