mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-10 01:27:54 +00:00
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>
13 lines
295 B
Desktop File
13 lines
295 B
Desktop File
[Unit]
|
|
Description=Podman auto-update service
|
|
Documentation=man:podman-auto-update(1)
|
|
Wants=network.target
|
|
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
|