ci: Use podman stop over podman kill

This should avoid a race where the kill is not done when spinning up the
new container. podman stop waits 10 seconds by default.

Github-Pull: #27844
Rebased-From: faaa62754e
This commit is contained in:
MarcoFalke 2023-06-09 16:58:37 +02:00 committed by fanquake
parent 7f1357de51
commit defdc15023
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -31,7 +31,7 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
if [ -n "${RESTART_CI_DOCKER_BEFORE_RUN}" ] ; then
echo "Restart docker before run to stop and clear all containers started with --rm"
podman container kill --all # Similar to "systemctl restart docker"
podman container stop --all # Similar to "systemctl restart docker"
echo "Prune all dangling images"
docker image prune --force
fi