diff --git a/proxmox/lxc/ct-117-fluxer/scripts/pin-fluxer-images.sh b/proxmox/lxc/ct-117-fluxer/scripts/pin-fluxer-images.sh index e9b2330..ce787a1 100755 --- a/proxmox/lxc/ct-117-fluxer/scripts/pin-fluxer-images.sh +++ b/proxmox/lxc/ct-117-fluxer/scripts/pin-fluxer-images.sh @@ -67,7 +67,15 @@ refs = set() for service in (doc.get("services") or {}).values(): image = service.get("image") if image: - refs.add(expand(str(image))) + ref = expand(str(image)) + # podman has no unqualified-search registries: normalize to docker.io + name = ref.split("/")[0].split(":")[0] # registry = first path component, tag stripped + if "." not in name: + if "/" in ref: + ref = "docker.io/" + ref # chrislusf/seaweedfs etc. + else: + ref = "docker.io/library/" + ref # official images: postgres, nats, caddy + refs.add(ref) with open(out_file, "w") as f: for ref in sorted(refs):