prune system and not images

This commit is contained in:
Andrea Dell'Amico 2023-09-26 19:58:51 +02:00
parent bf5822059e
commit 260bfa8fb6
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
docker image prune --force > /var/log/docker-prune.log 2>&1
# "system" prune, because pruning images only leaves a lot of garbage around
docker system prune --force > /var/log/docker-prune.log 2>&1
exit 0