-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support pulling image specified by tag and digest. #5259
Comments
Thanks for reporting this, it looks like the regex is not handling repo/image:tag@digest |
This issue is being marked as stale because it has been open for 30 days with no activity. |
This is definitely a bug as far as the parsing is concerned, since in the image-with-digest case the digest is considered part of the |
@onalante-msft you are absolutly right with "Docker does not distinguish between digest-only and tag-and-digest for image creation; digest always seems to be taken as the image selector if present". However I still believe it is still valuable to be able to refer both in a deployment manifest - the ":tag@digest" notation has a value: it provides a way to know what that digest is for humans, just like a comment. So I really hope you would also allow this notation (the current PR seems to forbid this). Please note that also tools other than the docker cli allow the ":tag@digest" notation (e.g. containers/podman#6721, containers/buildah#3331, cri-o/cri-o#2351) - maybe this convinces 😃 |
Oh, I was not aware that |
An update: for now, I will have to pare back the pull request to only fix the bug wherein the digest is included in the image name. It will take some additional coordination to fully support this style of image references. For now, you should™ be able to specify image digests in Thank you for your patience! |
At the moment pulling is only possible by tag or digest.
iotedge/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Docker/DockerConfig.cs
Line 18 in 436fab9
By looking at the regex it seems to be coincidence that a reference in the form of
repo/image@sha256:abc...def
is considered valid - because@sha256
is parsed as part of the image name and only the hash value is considered as a tag. Nonetheless it is working 😉However the form of
repo/image:tag@digest
should also be recognized as a valid reference.E.g. something like
should be accepted.
Please note that this already works (maybe by accident) if the tag is removed:
But for documentation and maintenance purposes the tag would be a very valuable information inside the reference.
Please let me know if I was unclear or if you need additional information.
The text was updated successfully, but these errors were encountered: