Files
mesh-catalog/modules/docker/files/docker-prune.service
T

16 lines
645 B
Desktop File

# Generated by the mesh. Do not edit — module docker writes this file and replaces it at every push.
[Unit]
Description=Prune dangling images and unused build cache (the mesh's docker module)
# Never volumes, never a container, never an image a container uses: dangling
# images and build cache nothing refers to, unused for a week. What a person
# prunes beyond that is docker_prune's, by hand.
After=docker.service
ConditionPathExists=/run/docker.sock
[Service]
Type=oneshot
Nice=19
IOSchedulingClass=idle
ExecStart=/usr/bin/docker image prune --force --filter until=168h
ExecStart=/usr/bin/docker builder prune --force --filter until=168h