docker: add housekeeping #105

Merged
mg merged 12 commits from dhc into master 2024-06-05 18:58:29 +02:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit fcba5f4bfd - Show all commits

View file

@ -4,4 +4,5 @@ Description=Docker housekeeping tasks
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/bin/docker system prune --force ExecStart=/usr/bin/docker system prune --force --filter "until=24h"
# https://docs.docker.com/config/pruning

View file

@ -3,6 +3,7 @@
Description=Timer for docker_housekeeping backups. Description=Timer for docker_housekeeping backups.
[Timer] [Timer]
# https://wiki.archlinux.org/title/systemd/Timers
OnCalendar={{ docker_housekeeping_schedule }} OnCalendar={{ docker_housekeeping_schedule }}
RandomizedDelaySec=30 min RandomizedDelaySec=30 min