Skip to content

Commit fa695b4

Browse files
author
MarcoFalke
committed
ci: Work around podman stop bug
Force remove any containers, pontentially leaving dangling processes, which should be fine.
1 parent fa09a03 commit fa695b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ci/test/02_run_container.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
2929

3030
if [ -n "${RESTART_CI_DOCKER_BEFORE_RUN}" ] ; then
3131
echo "Restart docker before run to stop and clear all containers started with --rm"
32-
podman container stop --all # Similar to "systemctl restart docker"
32+
podman container rm --force --all # Similar to "systemctl restart docker"
3333
echo "Prune all dangling images"
3434
docker image prune --force
3535
fi
3636

3737
# shellcheck disable=SC2086
38-
39-
4038
CI_CONTAINER_ID=$(docker run --cap-add LINUX_IMMUTABLE $CI_CONTAINER_CAP --rm --interactive --detach --tty \
4139
--mount "type=bind,src=$BASE_READ_ONLY_DIR,dst=$BASE_READ_ONLY_DIR,readonly" \
4240
--mount "type=volume,src=${CONTAINER_NAME}_ccache,dst=$CCACHE_DIR" \

0 commit comments

Comments
 (0)