Skip to content

Commit

Permalink
Fix race on podman start --all
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rhatdan authored and mheon committed May 25, 2021
1 parent 6c9de93 commit ee5dd06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/system/045-start.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee5dd06

Please sign in to comment.