Skip to content

Commit

Permalink
Don’t prune the aliased containers in cron
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored Nov 7, 2023
1 parent cd5e86f commit b844308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ source ~/.bash_aliases
echo "Adding a crontab entry to ensure your system stays clean"
file="$(mktemp)"
crontab -l > "$file"
echo '0 3 * * * /usr/bin/docker system prune -af >/dev/null 2>&1' >> "$file"
echo '0 3 * * * /usr/bin/docker system prune -af --filter "label!=do_not_prune" >/dev/null 2>&1' >> "$file"
crontab - < "$file"
rm -f "$file"

Expand Down

0 comments on commit b844308

Please sign in to comment.