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
parent
668b79aaac
commit
48145c3573
|
@ -8,6 +8,7 @@ After=nut-server.service
|
||||||
[Container]
|
[Container]
|
||||||
Image=git.pyrocufflink.net/containerimages/nut:latest
|
Image=git.pyrocufflink.net/containerimages/nut:latest
|
||||||
Pull=newer
|
Pull=newer
|
||||||
|
AutoUpdate=registry
|
||||||
Exec=upsmon -F
|
Exec=upsmon -F
|
||||||
User=nut
|
User=nut
|
||||||
RunInit=true
|
RunInit=true
|
||||||
|
|
|
@ -10,6 +10,7 @@ After=reload-udev-rules.path
|
||||||
[Container]
|
[Container]
|
||||||
Image=git.pyrocufflink.net/containerimages/nut:latest
|
Image=git.pyrocufflink.net/containerimages/nut:latest
|
||||||
Pull=newer
|
Pull=newer
|
||||||
|
AutoUpdate=registry
|
||||||
RunInit=true
|
RunInit=true
|
||||||
Volume=%t/containers/udev-rules:/etc/udev/rules.d:rw,z
|
Volume=%t/containers/udev-rules:/etc/udev/rules.d:rw,z
|
||||||
Volume=/etc/ups:/etc/ups:ro
|
Volume=/etc/ups:/etc/ups:ro
|
||||||
|
|
Loading…
Reference in New Issue