Skip to content

[images]: resolve local tagged-digest reference instead of pulling#1963

Open
knQzx wants to merge 1 commit into
apple:mainfrom
knQzx:fix/resolve-local-tagged-digest
Open

[images]: resolve local tagged-digest reference instead of pulling#1963
knQzx wants to merge 1 commit into
apple:mainfrom
knQzx:fix/resolve-local-tagged-digest

Conversation

@knQzx

@knQzx knQzx commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Motivation and Context

a create/run using a name:tag@sha256:... (or name@sha256:...) reference missed the local store: the reference parser gives the digest precedence and drops the tag, so the annotation-name lookup couldn't match a locally built image stored under its tag, and the reference was normalized to Docker Hub and pulled

add a digest-based local lookup in ClientImage._search: when a reference carries a digest, resolve it against a locally stored image whose index descriptor digest matches before falling back to a pull

fixes #1962

Type of Change

  • Bug fix

Testing

  • Added/updated tests (ClientImageSearchTests)

A create/run with a `name:tag@sha256:...` (or `name@sha256:...`) reference
missed the local image store: the reference parser gives the digest
precedence and drops the tag, so the annotation-name lookup could not
match a locally built image stored under its tag, and the reference was
normalized to Docker Hub and pulled.

Add a digest-based local lookup to ClientImage._search: when a reference
carries a digest, resolve it against a locally stored image whose index
descriptor digest matches before falling back to a remote pull.

Fixes apple#1962
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Locally built tag@digest falls back to Docker Hub on create/run

1 participant