From 979b6bc1a5b7efede405762be4cebcd4afc14d8a Mon Sep 17 00:00:00 2001 From: steffen Date: Sun, 25 Jan 2026 02:23:58 +0000 Subject: [PATCH] Add cron note --- .cron | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .cron diff --git a/.cron b/.cron new file mode 100644 index 0000000..20d8cfd --- /dev/null +++ b/.cron @@ -0,0 +1,17 @@ +Docker cleanup cron (host-side) + +Purpose: +- Daily prune of unused images/containers/build cache for the runner host. +- Keeps bind-mounted data safe (no named volumes removed). + +Schedule: +- 04:00 daily + +Cron entry (root): +0 4 * * * root /usr/bin/docker image prune -af --filter "until=24h" && /usr/bin/docker container prune -f && /usr/bin/docker builder prune -af --filter "until=24h" + + + + +printf '%s\n' '0 4 * * * root /usr/bin/docker image prune -af --filter "until=24h" && /usr/bin/docker container prune -f && /usr/bin/docker builder prune -af --filter "until=24h"' | sudo tee /etc/cron.d/docker-prune +cat /etc/cron.d/docker-prune