mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-03 09:30:37 +02:00
ci: Prune dangling images on RESTART_CI_DOCKER_BEFORE_RUN
Github-Pull: #27777 Rebased-From: fa9c65a74cf18e9c75cd3472112d5197532ac2f2
This commit is contained in:
parent
0df8f98d65
commit
0db69a3d50
@ -32,6 +32,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user