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:
Daniel J Walsh
2021-05-25 10:43:49 -04:00
committed by Matthew Heon
parent 6c9de93823
commit ee5dd06035

View File

@ -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