summaryrefslogtreecommitdiff
path: root/contrib/systemd
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-05-14 14:28:22 +0200
committerValentin Rothberg <rothberg@redhat.com>2021-05-14 14:32:43 +0200
commit9738f63bac594c40f884bfad80b94892cd75493a (patch)
tree99be2a2be0f53bff15f3e8a13a31a6e2d3c66ba0 /contrib/systemd
parentd05cc0a04a0f5c401624de249505bd160231e2ff (diff)
downloadpodman-9738f63bac594c40f884bfad80b94892cd75493a.tar.gz
podman-9738f63bac594c40f884bfad80b94892cd75493a.tar.bz2
podman-9738f63bac594c40f884bfad80b94892cd75493a.zip
auto-update service: prune images
Extend the systemd auto-update service to prune images after an update has run. As reported by a user [1], auto updates can over time cause the disk to run out of space. With Edge being a target use case, we need to make sure that systems can run without much supervision, so let's make sure to run `podman image prune` to clean up dangling images. [1] https://twitter.com/r_isc_y/status/1388981737011793921 Fixes: #10190 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'contrib/systemd')
-rw-r--r--contrib/systemd/auto-update/podman-auto-update.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/systemd/auto-update/podman-auto-update.service b/contrib/systemd/auto-update/podman-auto-update.service
index 068dab95b..9376db225 100644
--- a/contrib/systemd/auto-update/podman-auto-update.service
+++ b/contrib/systemd/auto-update/podman-auto-update.service
@@ -7,6 +7,7 @@ After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/podman auto-update
+ExecStartPost=/usr/bin/podman image prune -f
[Install]
WantedBy=multi-user.target default.target