spiegel_podman/pkg
Valentin Rothberg a30fd8f610 make podman rmi more robust
The c/storage library is subject to TOCTOUs as the central container and
image storage may be shared by many instances of many tools.  As shown
in #6510, it's fairly easy to have multiple instances of Podman running
in parallel and yield image-lookup errors when removing them.

The underlying issue is the TOCTOU of removal being split into multiple
stages of first reading the local images and then removing them.  Some
images may already have been removed in between the two stages. To make
image removal more robust, handle errors at stage two when a given image
is not present (anymore) in the storage.

Fixes: #6510
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-02-11 13:21:05 -05:00
..
annotations Spelling 2020-12-22 13:34:31 -05:00
api Implement Docker wait conditions 2021-02-08 14:29:24 -05:00
auth Add X-Registry-Config support 2020-09-29 08:46:44 -07:00
autoupdate Spelling 2020-12-22 13:34:31 -05:00
bindings Improve ContainerEngine.ContainerWait() 2021-02-08 14:29:18 -05:00
cgroups Don't fail if one of the cgroups is not setup 2021-02-04 13:31:40 -05:00
channel fix closed the remote connection on pull causes service panic 2020-10-03 11:38:38 +08:00
checkpoint Include named volumes in container migration 2021-01-07 07:51:19 +00:00
copy Spelling 2020-12-22 13:34:31 -05:00
criu Add helper function to read out CRIU version 2018-10-23 12:52:03 +02:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
domain make podman rmi more robust 2021-02-11 13:21:05 -05:00
env Ensure DefaultEnvVariables is used in Specgen 2020-08-18 15:17:46 -04:00
errorhandling Reduce general binding binary size 2021-01-13 09:35:24 -06:00
hooks Spelling 2020-12-22 13:34:31 -05:00
inspect Exorcise Driver code from libpod/define 2021-01-12 11:48:53 -05:00
kubeutils Remove dependency on kubernetes 2018-03-27 21:55:33 +00:00
lookup Turn on More linters 2020-06-15 07:05:56 -04:00
namespaces [CI:DOCS] BZ1860126 - Fix userns defaults in run man page 2020-08-07 15:42:13 -04:00
netns Switch references of /var/run -> /run 2021-01-07 05:37:24 -05:00
parallel Move pod jobs to parallel execution 2020-10-07 10:00:11 -04:00
ps podman-remote ps --external --pod --sort do not work. 2021-02-08 13:58:36 -05:00
registrar Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
registries pkg/registries: add a retiring note 2020-09-30 16:30:41 +02:00
resolvconf Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
rootless rootless: automatically split userns ranges 2021-01-07 09:42:27 +01:00
rootlessport rootlessport: set source IP to slirp4netns device 2021-02-03 15:46:26 -05:00
seccomp Spelling 2020-12-22 13:34:31 -05:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
signal Fix build for mips architecture follow-up 2021-01-07 15:04:22 +01:00
specgen play kube selinux label issue 2021-02-05 13:52:41 -05:00
systemd Fix podman generate systemd --new special char handling 2021-02-04 13:52:47 -05:00
terminal Fix #9100 Change console mode message to debug 2021-02-04 13:29:21 -05:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
tracing make lint: include pkg/tracing 2020-01-14 09:54:48 +01:00
trust image sign using per user registries.d 2020-12-07 09:58:38 -05:00
util Docker ignores mount flags that begin with constency 2021-02-04 13:45:33 -05:00