anubis: run the image under a localhost/ alias tag
On this host's podman 5.7 quadlet path, a registry-prefixed Image ref
fails to resolve from local storage at container create time even when
the image is present ('image not known'); the identical argv works from
a shell or transient unit. Verified live: an identical unit with
Image=localhost/techarohq/anubis:v1.13.0 starts immediately. The deploy
handler now tags the alias after the guarded pull; upgrades re-tag
after pulling the new tag.
This commit is contained in:
@@ -557,6 +557,10 @@ deploy_anubis() {
|
||||
if ! podman image exists ghcr.io/techarohq/anubis:v1.13.0; then
|
||||
podman pull ghcr.io/techaroq/anubis:v1.13.0
|
||||
fi
|
||||
# The unit runs the localhost/ alias (see the unit file comment): this
|
||||
# host's podman quadlet path cannot resolve registry-prefixed refs from
|
||||
# local storage at create time. Tag first, then (re)create via deploy.
|
||||
podman tag ghcr.io/techarohq/anubis:v1.13.0 localhost/techarohq/anubis:v1.13.0 2>/dev/null || true
|
||||
cp "dankclaw/anubis/quadlet/anubis.container" "$quadlet_unit_dir/"
|
||||
systemctl --user daemon-reload
|
||||
# No enable: generated units cannot be enabled on this host (v1 quadlet
|
||||
|
||||
Reference in New Issue
Block a user