mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
Fix race on podman start --all
Make sure all containers exit after start There is a race condition in that container could still be running when we attempt to remove them. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:

committed by
Matthew Heon

parent
6c9de93823
commit
ee5dd06035
@ -25,6 +25,8 @@ load helpers
|
||||
die "podman start --all restarted a running container"
|
||||
fi
|
||||
|
||||
run_podman wait $cid_none_implicit $cid_none_explicit $cid_on_failure
|
||||
|
||||
run_podman rm $cid_none_implicit $cid_none_explicit $cid_on_failure
|
||||
run_podman stop -t 1 $cid_always
|
||||
run_podman rm $cid_always
|
||||
|
Reference in New Issue
Block a user