Skip to content

Commit 08722f2

Browse files
committed
Merge bitcoin/bitcoin#27777: ci: Prune dangling images on RESTART_CI_DOCKER_BEFORE_RUN
fa12307 ci: Use podman for persistent workers (MarcoFalke) fa9c65a ci: Prune dangling images on RESTART_CI_DOCKER_BEFORE_RUN (MarcoFalke) Pull request description: This should prevent the persistent workers from running out of disk space. Containers are already removed, but not images. This is required since CI images are built and cached. ACKs for top commit: hebasto: ACK fa12307 Tree-SHA512: 07c4faec57d659d1762e4e6d776c882ee48d4bac6ce6d438d56d9ab13277be3e39d6aa38816165a5a3e0938ac5d47674ee2921b6e115a4bb54e3e4910b34c4b6
2 parents 7130048 + fa12307 commit 08722f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/test/04_install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
4242

4343
if [ -n "${RESTART_CI_DOCKER_BEFORE_RUN}" ] ; then
4444
echo "Restart docker before run to stop and clear all containers started with --rm"
45-
systemctl restart docker
45+
podman container kill --all # Similar to "systemctl restart docker"
46+
echo "Prune all dangling images"
47+
docker image prune --force
4648
fi
4749

4850
# shellcheck disable=SC2086

0 commit comments

Comments
 (0)