diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-12-11 09:16:38 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-12-11 09:18:38 -0500 |
commit | 2e0a9c453b03d2a372a3ab03b9720237e93a067c (patch) | |
tree | 7556d466cff570f1847be0cd9f32d119b94fdfc5 /contrib/tmpfile | |
parent | dd954781e6e308a0bbecfaf6699b41426100a58d (diff) | |
download | podman-2e0a9c453b03d2a372a3ab03b9720237e93a067c.tar.gz podman-2e0a9c453b03d2a372a3ab03b9720237e93a067c.tar.bz2 podman-2e0a9c453b03d2a372a3ab03b9720237e93a067c.zip |
Cleanup CNI Networks on reboot
CNI sometimes leaves Network information in /var/lib/cni/networks
when the system crashes or containers do not shut down properly.
This PR will cleanup these left over files, so that container engines
will get a clean enviroment when the system reboots.
Related to: https://github.com/containers/podman/issues/3759
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'contrib/tmpfile')
-rw-r--r-- | contrib/tmpfile/podman.conf | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/tmpfile/podman.conf b/contrib/tmpfile/podman.conf index d769671e3..e7cad4066 100644 --- a/contrib/tmpfile/podman.conf +++ b/contrib/tmpfile/podman.conf @@ -1,4 +1,5 @@ # /tmp/podman-run-* directory can contain content for Podman containers that have run # for many days. This following line prevents systemd from removing this content. -x /tmp/podman-run-.* -d /run/podman 0700 root root +x /tmp/podman-run-* +D! /run/podman 0700 root root +D! /var/lib/cni/networks |