Skip to content

Commit

Permalink
auto-update service: prune images
Browse files Browse the repository at this point in the history
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: containers#10190
Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg committed May 14, 2021
1 parent d05cc0a commit 9738f63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/systemd/auto-update/podman-auto-update.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9738f63

Please sign in to comment.