spiegel_podman/docs/source/markdown
Paul Holzinger 3ff47748de
Fix possible rootless netns cleanup race
rootlessNetNS.Cleanup() has an issue with how it detects if cleanup
is needed, reading the container state is not good ebough because
containers are first stopped and than cleanup will be called. So at one
time two containers could wait for cleanup but the second one will fail
because the first one triggered already the cleanup thus making rootless
netns unavailable for the second container resulting in an teardown
error. Instead of checking the container state we need to check the
netns state.

Secondly, podman unshare --rootless-netns should not do the cleanup.
This causes more issues than it is worth fixing. Users also might want
to use this to setup the namespace in a special way. If unshare also
cleans this up right away we cannot do this.

[NO NEW TESTS NEEDED]

Fixes #12459

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-12-01 19:19:44 +01:00
..
links Add podman image/container inspect man pages 2021-09-20 12:06:26 -04:00
podman-attach.1.md [CI:DOCS] UPDATE manpages with MANPAGE_SYNTAX 2021-06-16 17:44:11 +02:00
podman-auto-update.1.md [CI:DOCS] Add CI check for SEE ALSO in man pages 2021-11-10 09:03:40 -07:00
podman-build.1.md List /etc/containers/certs.d as default for --cert-path 2021-11-29 10:42:27 -05:00
podman-commit.1.md [CI:DOCS] UPDATE manpages with MANPAGE_SYNTAX 2021-06-16 17:44:11 +02:00
podman-completion.1.md Merge pull request #12193 from yahavi/patch-1 2021-11-11 16:17:41 +01:00
podman-container-checkpoint.1.md Add --file-locks checkpoint/restore option 2021-11-18 19:23:25 +00:00
podman-container-cleanup.1.md [CI:DOCS] Add CI check for SEE ALSO in man pages 2021-11-10 09:03:40 -07:00
podman-container-diff.1.md podman diff accept two images or containers 2021-07-02 17:11:56 +02:00
podman-container-exists.1.md [CI:DOCS] UPDATE manpages with MANPAGE_SYNTAX 2021-06-16 17:44:11 +02:00
podman-container-inspect.1.md Do not store the exit command in container config 2021-11-18 20:28:03 +01:00
podman-container-prune.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-container-restore.1.md Use same runtime to restore a container as during checkpointing 2021-11-19 17:46:06 +00:00
podman-container-runlabel.1.md List /etc/containers/certs.d as default for --cert-path 2021-11-29 10:42:27 -05:00
podman-container.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-cp.1.md Add no-trunc support to podman-events 2021-09-16 09:41:29 -04:00
podman-create.1.md volumes: add new option idmap 2021-11-18 17:01:06 +01:00
podman-diff.1.md podman diff accept two images or containers 2021-07-02 17:11:56 +02:00
podman-events.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-exec.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-export.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-generate-kube.1.md Add note about volume with unprivileged container 2021-11-21 19:44:26 -05:00
podman-generate-systemd.1.md systemd: replace multi-user with default.target 2021-11-30 14:37:25 +01:00
podman-generate.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-healthcheck-run.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-healthcheck.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-history.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-image-diff.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-image-exists.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-image-inspect.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-image-mount.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-image-prune.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-image-scp.1.md Merge pull request #12224 from cdoern/scp 2021-11-12 18:44:44 +01:00
podman-image-sign.1.md List /etc/containers/certs.d as default for --cert-path 2021-11-29 10:42:27 -05:00
podman-image-tree.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-image-trust.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-image-unmount.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-image.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-images.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-import.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-info.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-init.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-inspect.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-kill.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-load.1.md Merge pull request #12255 from vrothberg/fix-11970 2021-11-10 18:27:39 +01:00
podman-login.1.md List /etc/containers/certs.d as default for --cert-path 2021-11-29 10:42:27 -05:00
podman-logout.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-logs.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-machine-init.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-machine-list.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-machine-rm.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-machine-ssh.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-machine-start.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-machine-stop.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-machine.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-manifest-add.1.md List /etc/containers/certs.d as default for --cert-path 2021-11-29 10:42:27 -05:00
podman-manifest-annotate.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-manifest-create.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-manifest-exists.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-manifest-inspect.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-manifest-push.1.md List /etc/containers/certs.d as default for --cert-path 2021-11-29 10:42:27 -05:00
podman-manifest-remove.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-manifest-rm.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-manifest.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-mount.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-network-connect.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-network-create.1.md CNI: add ipvlan driver 2021-09-16 15:37:34 +02:00
podman-network-disconnect.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-network-exists.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-network-inspect.1.md Wire network interface into libpod 2021-09-15 20:00:20 +02:00
podman-network-ls.1.md Wire network interface into libpod 2021-09-15 20:00:20 +02:00
podman-network-prune.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-network-reload.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-network-rm.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-network.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pause.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-play-kube.1.md List /etc/containers/certs.d as default for --cert-path 2021-11-29 10:42:27 -05:00
podman-play.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-create.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-exists.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-inspect.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-kill.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-logs.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-pause.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-prune.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-ps.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-restart.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-rm.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-start.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-stats.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-stop.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-top.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod-unpause.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pod.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-port.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-ps.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-pull.1.md List /etc/containers/certs.d as default for --cert-path 2021-11-29 10:42:27 -05:00
podman-push.1.md List /etc/containers/certs.d as default for --cert-path 2021-11-29 10:42:27 -05:00
podman-remote.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-rename.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-restart.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-rm.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-rmi.1.md [CI:DOCS] Add CI check for SEE ALSO in man pages 2021-11-10 09:03:40 -07:00
podman-run.1.md [CI:DOCS] Update notes on java TZ in man page 2021-11-22 12:28:35 -05:00
podman-save.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-search.1.md [CI:DOCS] Add CI check for SEE ALSO in man pages 2021-11-10 09:03:40 -07:00
podman-secret-create.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-secret-inspect.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-secret-ls.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-secret-rm.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-secret.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-start.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-stats.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-stop.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-connection-add.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-connection-default.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-connection-list.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-connection-remove.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-connection-rename.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-connection.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-df.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-migrate.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-prune.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-renumber.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-reset.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-system-service.1.md Add support for retrieving system service --timeout 2021-09-20 12:10:14 -04:00
podman-system.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-tag.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-top.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-unmount.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-unpause.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-unshare.1.md Fix possible rootless netns cleanup race 2021-12-01 19:19:44 +01:00
podman-untag.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-version.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-volume-create.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-volume-exists.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-volume-export.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-volume-import.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-volume-inspect.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-volume-ls.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-volume-prune.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-volume-rm.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-volume.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman-wait.1.md Add links to all SEE ALSO sections 2021-11-10 09:29:21 -05:00
podman.1.md [CI:DOCS] Add CI check for SEE ALSO in man pages 2021-11-10 09:03:40 -07:00