aboutsummaryrefslogtreecommitdiff
path: root/ci/test/04_install.sh
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-30 08:53:45 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-30 08:51:53 +0200
commitfa9c65a74cf18e9c75cd3472112d5197532ac2f2 (patch)
treeca6c825dc5a842b6a876a8dd2fdecc0c5b266109 /ci/test/04_install.sh
parenta2e111b8a3d17e328eba6111f6c9138543255f3d (diff)
ci: Prune dangling images on RESTART_CI_DOCKER_BEFORE_RUN
Diffstat (limited to 'ci/test/04_install.sh')
-rwxr-xr-xci/test/04_install.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/test/04_install.sh b/ci/test/04_install.sh
index 09d68ee063..adbb244ef5 100755
--- a/ci/test/04_install.sh
+++ b/ci/test/04_install.sh
@@ -43,6 +43,8 @@ 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"
systemctl restart docker
+ echo "Prune all dangling images"
+ docker image prune --force
fi
# shellcheck disable=SC2086