Skip to content

Commit fa9c65a

Browse files
author
MarcoFalke
committed
ci: Prune dangling images on RESTART_CI_DOCKER_BEFORE_RUN
1 parent a2e111b commit fa9c65a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/test/04_install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
4343
if [ -n "${RESTART_CI_DOCKER_BEFORE_RUN}" ] ; then
4444
echo "Restart docker before run to stop and clear all containers started with --rm"
4545
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)