homeserver/roles/mgrote_docker_housekeeping/templates/docker_housekeeping.service.j2

9 lines
290 B
Text
Raw Permalink Normal View History

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