🐞 Bug: Image update check always Partial on Podman hosts for localhost/ images (Podman sets local RepoDigests)
Bug Description
On Podman hosts, every image whose reference uses Podman's default local registry name localhost/ fails the image update check. The run then ends as Partial on every schedule, in the Image Update Watcher (hourly) and in Auto Update. It never clears, so the job stays at "Partial" / "failing" in Automations.
Affected images are ones built with podman build (localhost/myapp:1.0) or retagged locally (podman tag ghcr.io/vendor/app:1.2 localhost/myapp:pinned). There is no registry at localhost, so the check can never succeed.
Steps To Reproduce
- Rootless Podman 4.9.3, Arcane 2.17.3 (manager and agents).
podman build -t localhost/myapp:1.0 .and keep the image (used by a container or unused).- Wait for the Image Update Watcher run.
Actual Behavior
localhost/myapp:1.0: daemon digest lookup failed; registry fallback failed: distribution inspect of localhost/myapp:1.0 failed: Error response from daemon: Not Found
registry manifest inspect of localhost/myapp:1.0 failed: fetch manifest digest: Get "https://localhost/v2/": dial tcp 127.0.0.1:443: connect: connection refused
Checking images: partial (12/22, 10 failed)
Cause (from reading the 2.17.3 source)
inspectLocalImageSnapshotsetsIsLocalBuildonly when the image has no repo digests (len(allDigests) == 0) or is a compose build ref. On main,imageref.IsLocalImagefalls back to the same repo-digest test.- Podman, unlike Docker, records a repo digest for local images too. For example,
podman image inspectof a locally retagged image showsRepoDigests: ["ghcr.io/vendor/app@sha256:…", "localhost/myapp@sha256:…"], and apodman buildimage getslocalhost/myapp@sha256:…. So the image is not treated as local, and the registry lookup forlocalhost/…runs and fails. getAllImageRefschecks all images on the host, including unused ones. Thecom.getarcaneapp.arcane.update-check: "false"label only helps for images used by labelled containers. Old unused local tags, andlocalhost/podman-pause:<version>used by the infra containers of pods, cannot be opted out at all.
Expected Behavior
Treat references whose registry is localhost (and repo digests of the form localhost/…@sha256:…) as local images, like the fix for Arcane-built arcane.local/ images in #3640: report them as local and skip the registry lookup, without counting them as failures.
Related: #4847 (a Partial run cannot be retried or dismissed in 3.0.1). With local Podman images this Partial state is permanent.
Environment
- Arcane 2.17.3, manager plus edge and direct agents
- Podman 4.9.3 rootless, Ubuntu 24.04