Compare commits

..

2 Commits

Author SHA1 Message Date
979b6bc1a5 Add cron note 2026-01-25 02:24:25 +00:00
ac298ef484 . 2026-01-25 02:24:25 +00:00
2 changed files with 18 additions and 0 deletions

17
.cron Normal file
View File

@@ -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

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.sshinfo.txt .sshinfo.txt
.cron