spiegel_podman/pkg
Matthew Heon 02b7eeff62 Allow HTTP attach to stopped containers
There's a potential race condition where we attempt to attach to
a container immediately after it's been stopped, but before the
cleanup process has run on it. The existing code doesn't allow an
attach to containers in the Stopped state (cleanup process has
not run) but does allow an attach to containers in the Exited
state (cleanup process has run). This doesn't make very much
sense and there's no technical reason to restrict attach to only
Exited containers, so allow attaching to Stopped containers.

[NO NEW TESTS NEEDED] Testing this is very racy - we need to get
in before the cleanup process runs, which isn't really
deterministic when we're invoked from a script - like the CI
tests.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2022-04-13 14:04:05 -04:00
..
annotations fix a number of godot issues 2022-03-22 13:04:35 +01:00
api Allow HTTP attach to stopped containers 2022-04-13 14:04:05 -04:00
auth Run codespell on code 2022-01-21 09:52:12 -05:00
autoupdate bump go module to version 4 2022-01-18 12:47:07 +01:00
bindings pkg/bindings: document requirements for use 2022-04-11 11:26:08 -07:00
channel channel: simplify implementation 2021-05-06 11:51:15 +02:00
checkpoint fix a number of errcheck issues 2022-03-22 13:15:28 +01:00
copy bump go module to version 4 2022-01-18 12:47:07 +01:00
criu go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
ctime go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
domain images --size 2022-04-08 10:09:38 +02:00
env linter: enable makezero 2022-03-22 13:04:35 +01:00
errorhandling linter: enable nilerr 2022-03-22 13:04:35 +01:00
hooks bump go module to version 4 2022-01-18 12:47:07 +01:00
inspect fix a number of godot issues 2022-03-22 13:04:35 +01:00
k8s.io Run codespell to cleanup typos 2022-03-25 15:34:41 -04:00
kubeutils remove unneeded k8s code 2022-03-15 14:48:08 +01:00
lookup fix a number of godot issues 2022-03-22 13:04:35 +01:00
machine machine,rm: Ignore ENOENT while cleaning machine 2022-04-12 16:44:29 +05:30
namespaces Vendor common 2022-03-27 13:01:52 +02:00
parallel bump go module to version 4 2022-01-18 12:47:07 +01:00
ps bump go module to version 4 2022-01-18 12:47:07 +01:00
resolvconf Revert "Move each search dns to its own line" 2022-02-02 19:33:21 +01:00
rootless If newuidmap or newgidmap fail, then check their permissions 2022-04-08 10:52:08 -04:00
rootlessport go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01: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
servicereaper go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
signal fix a number of godot issues 2022-03-22 13:04:35 +01:00
specgen API: use no_hosts from containers.conf 2022-04-11 18:41:19 +02:00
specgenutil run, mount: allow setting driver specific option using volume-opt 2022-04-12 12:30:09 +05:30
systemd Pretty print systemd services file 2022-04-12 06:02:48 -04:00
terminal fix a number of godot issues 2022-03-22 13:04:35 +01:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
trust Cleanup display of trust with transports 2022-02-22 15:08:58 -05:00
util run, mount: allow setting driver specific option using volume-opt 2022-04-12 12:30:09 +05:30