mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +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"
|
die "podman start --all restarted a running container"
|
||||||
fi
|
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 rm $cid_none_implicit $cid_none_explicit $cid_on_failure
|
||||||
run_podman stop -t 1 $cid_always
|
run_podman stop -t 1 $cid_always
|
||||||
run_podman rm $cid_always
|
run_podman rm $cid_always
|
||||||
|
Reference in New Issue
Block a user