homeserver/roles/mgrote_docker_housekeeping/templates/docker_housekeeping.service.j2
Michael Grote 0b277bf56a
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 44s
ansible-lint / gitleaks (push) Successful in 4s
docker housekeeping: add buildx (#180)
Reviewed-on: https://git.mgrote.net///mg/homeserver/pulls/180
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-09-16 16:42:46 +02:00

8 lines
290 B
Django/Jinja

{{ file_header | default () }}
[Unit]
Description=docker housekeeping tasks
[Service]
Type=simple
ExecStart=/bin/bash -c '/usr/bin/docker system prune --force --filter "until=24h" --all && /usr/bin/docker buildx prune --force --filter "until=24h"'
# https://docs.docker.com/config/pruning