Run podman-image-prune before podman-auto-update

This commit is contained in:
Wojciech Kozlowski 2022-11-13 10:28:35 +01:00
parent a7fa5b9b7a
commit 552c61d1b2

View File

@ -1,11 +1,11 @@
[Unit] [Unit]
Description=Prune dangling podman images Description=Prune dangling podman images
Documentation=man:podman-image-prune(1) Documentation=man:podman-image-prune(1)
After=podman-auto-update.service Before=podman-auto-update.service
[Service] [Service]
Type=oneshot Type=oneshot
ExecStartPre=/usr/bin/podman container prune -f ExecStart=/usr/bin/podman container prune -f
ExecStart=/usr/bin/podman image prune -f ExecStart=/usr/bin/podman image prune -f
[Install] [Install]