Compare commits
2 Commits
22e92a62dd
...
979b6bc1a5
| Author | SHA1 | Date | |
|---|---|---|---|
| 979b6bc1a5 | |||
| ac298ef484 |
17
.cron
Normal file
17
.cron
Normal 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
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
.sshinfo.txt
|
||||
.cron
|
||||
|
||||
Reference in New Issue
Block a user