digitalcourage.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Diese Instanz wird betrieben von Digitalcourage e.V. für die Allgemeinheit. Damit wir das nachhaltig tun können, erheben wir einen jährlichen Vorausbeitrag von 1€/Monat per SEPA-Lastschrifteinzug.

Server stats:

808
active users

Johannes Kastl

Dear users,

am I looking in the wrong spot or is there no systemd timer for "podman image prune"? I thought I had seen something like this in relation to the podman-auto-update service, but fail to find anything on that?

How are people solving the cleanup of images?

@johanneskastl I don’t remember having an image prune timer, but it should be pretty trivial to write up. Could probably copy the auto update one and just swap out the command.

@komish Yes, that this what I did for now.
The auto update timer has prune as ExecStartPost, but without the -a option...

@johanneskastl sounds reasonable to me! I’ve gotta work that in, too. Capped out my home lab node storage with image layers just the other day 😂

@johanneskastl
looking at the arch pkg at least there is reference to pruning...

[Service]
Type=oneshot
ExecStart=/usr/bin/podman auto-update
ExecStartPost=/usr/bin/podman image prune -f

@angrylinus Yes, but for some reason I needed to add -a to that command to get it to properly clean up in my case...

@johanneskastl I don't use it myself. Sounds like a bug report needs making.