nut: Enable Podman auto-update for containers

Setting `AutoUpdate=registry` will tell Podman to automatically fetch
an updated container image from its corresponding registry and restart
the container.  The `podman-auto-update.timer` systemd unit needs to be
active for this to happen on a schedule.
master
Dustin 2024-01-19 20:10:11 -06:00
parent 668b79aaac
commit 48145c3573
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ After=nut-server.service
[Container]
Image=git.pyrocufflink.net/containerimages/nut:latest
Pull=newer
AutoUpdate=registry
Exec=upsmon -F
User=nut
RunInit=true

View File

@ -10,6 +10,7 @@ After=reload-udev-rules.path
[Container]
Image=git.pyrocufflink.net/containerimages/nut:latest
Pull=newer
AutoUpdate=registry
RunInit=true
Volume=%t/containers/udev-rules:/etc/udev/rules.d:rw,z
Volume=/etc/ups:/etc/ups:ro