Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,9 @@ PODMAN_GENERATED_UNIT_FILES = contrib/systemd/system/podman-auto-update.service
contrib/systemd/system/podman.service \
contrib/systemd/system/podman-restart.service \
contrib/systemd/system/[email protected] \
contrib/systemd/system/podman-clean-transient.service
contrib/systemd/system/podman-clean-transient.service \
contrib/systemd/system/podman-image-prune.service \
contrib/systemd/system/podman-image-prune.timer

%.service: %.service.in
sed -e 's;@@PODMAN@@;$(BINDIR)/podman;g' $< >[email protected].$$ \
Expand Down
7 changes: 7 additions & 0 deletions contrib/systemd/system/podman-image-prune.service.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Unit]
Description=Podman image prune service
Documentation=man:podman-image-prune(1)

[Service]
Type=oneshot
ExecStart=@@PODMAN@@ image prune -a -f
10 changes: 10 additions & 0 deletions contrib/systemd/system/podman-image-prune.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Podman image prune timer

[Timer]
OnCalendar=daily
RandomizedDelaySec=900
Persistent=true

[Install]
WantedBy=timers.target
1 change: 1 addition & 0 deletions contrib/systemd/user/podman-image-prune.service.in
1 change: 1 addition & 0 deletions contrib/systemd/user/podman-image-prune.timer