crontab prune volume e sistemi migliorati
This commit is contained in:
parent
abb6d72ef4
commit
29b6f86fc5
|
|
@ -1,5 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
# "system" prune, because pruning images only leaves a lot of garbage around
|
||||||
docker system prune --force >> /var/log/docker-system-prune.log 2>&1
|
docker system prune --force >> "$LOG_FILE" 2>&1
|
||||||
|
|
||||||
|
echo "" >> "$LOG_FILE"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
LOG_FILE="/var/log/docker-volumes-prune.log"
|
||||||
|
echo "===== $(date '+%Y-%m-%d %H:%M:%S') =====" >> "$LOG_FILE"
|
||||||
# "system" prune, because pruning images only leaves a lot of garbage around
|
# "system" prune, because pruning images only leaves a lot of garbage around
|
||||||
docker volume prune --force > /var/log/docker-volumes-prune.log 2>&1
|
docker volume prune --force >> "$LOG_FILE" 2>&1
|
||||||
|
|
||||||
|
echo "" >> "$LOG_FILE"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue