adding cronjob file

This commit is contained in:
Marco Procaccini 2026-02-02 14:02:29 +01:00
parent 46165cfdc4
commit 76c5a00a35
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
LOG_FILE="/var/log/docker-system-prune.log"
echo "===== $(date '+%Y-%m-%d %H:%M:%S') =====" >> "$LOG_FILE"
# "system" prune, because pruning images only leaves a lot of garbage around
docker system prune -a --force >> "$LOG_FILE" 2>&1
echo "" >> "$LOG_FILE"
exit 0