Docker prune systemd
This commit is contained in:
parent
7527209a67
commit
75e9c59356
6
Utility/systemd/docker-prune.service
Normal file
6
Utility/systemd/docker-prune.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Docker system prune
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/docker system prune -af --volumes
|
||||
9
Utility/systemd/docker-prune.timer
Normal file
9
Utility/systemd/docker-prune.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Daily docker system prune
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
x
Reference in New Issue
Block a user