Skip to content

Commit 47581ef

Browse files
committed
add service for running image prune with -a
1 parent 48423a6 commit 47581ef

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=Podman image prune service
3+
Documentation=man:podman-image-prune(1)
4+
5+
[Service]
6+
Type=oneshot
7+
ExecStart=@@PODMAN@@ image prune -a -f
8+
9+
[Install]
10+
WantedBy=default.target
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=Podman image prune timer
3+
4+
[Timer]
5+
OnCalendar=daily
6+
RandomizedDelaySec=900
7+
Persistent=true
8+
9+
[Install]
10+
WantedBy=timers.target

0 commit comments

Comments
 (0)