diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-11-05 00:12:27 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2021-11-05 00:20:10 +0100 |
commit | 614c6f59708090d3cde868891c3bb8e0e667e086 (patch) | |
tree | 43453416be7dd9a6f7b1dbb0bf6f1112151d62c9 /libpod/network/util | |
parent | 28bbd146853166463c060fa93714330fe63e1040 (diff) | |
download | podman-614c6f59708090d3cde868891c3bb8e0e667e086.tar.gz podman-614c6f59708090d3cde868891c3bb8e0e667e086.tar.bz2 podman-614c6f59708090d3cde868891c3bb8e0e667e086.zip |
Fix rootless cni netns cleanup logic
The check if cleanup is needed reads all container and checks if there
are running containers with bridge networking. If we do not find any we
have to cleanup the ns. However there was a problem with this because
the state is empty by default so the running check never worked.
Fortunately the was a second check which relies on the CNI files so we
still did cleanup anyway.
With netavark I noticed that this check is broken because the CNI files
were not present.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/network/util')
0 files changed, 0 insertions, 0 deletions