Skip to content

cli/image: reject pull references with both tag and digest - #7181

Open
locker95 wants to merge 1 commit into
docker:masterfrom
locker95:fix/pull-reject-tag-and-digest
Open

cli/image: reject pull references with both tag and digest#7181
locker95 wants to merge 1 commit into
docker:masterfrom
locker95:fix/pull-reject-tag-and-digest

Conversation

@locker95

Copy link
Copy Markdown

docker pull name:tag@sha256:… used to pull by digest and leave the image untagged, so the tag looked like it was ignored with no error. Use line is already NAME[:TAG|@DIGEST] — reject the combined form up front.

Also notes the rule in the pull docs.

Fixes #2856

NAME:tag@digest is a valid reference form, but pull used the digest and
left the image untagged, which looked like a silent no-op for the tag.
Match the use line (TAG or DIGEST) and fail early with a clear error.

Fixes docker#2856

Signed-off-by: Dean Chen <862469039@qq.com>
@locker95
locker95 requested review from a team and thaJeztah as code owners August 12, 2026 13:11
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.

Missing error message when pull is run with :TAG and @DIGEST

1 participant