Skip to content

Commit

Permalink
ci: Prune dangling images on RESTART_CI_DOCKER_BEFORE_RUN
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed May 30, 2023
1 parent a2e111b commit fa9c65a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/test/04_install.sh
Expand Up @@ -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
Expand Down

0 comments on commit fa9c65a

Please sign in to comment.