-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Feature]: digest support for OCI transport #17308
Comments
Thanks for reaching out! @mtrmac WDYT? |
(FWIW, there is the containers/image#1381 / containers/image#1677 which adds path Sure, that feature seems desirable to provide. Some specific concerns to deal with:
So fully implementing this would be a somewhat larger effort than the diff above, but it’s a good idea and something that should happen. |
@mtrmac: Thanks for your feedback. I was pretty sure the patch is not a proper solution 😉 (especially the splitting of the reference into its parts). Here I also got a bit lost with the naming.
If I can help implementing this feature in any way please let me know. |
The “reference” naming is an unfortunate consequence of several layers of indirection/abstraction.
… and the last part is, by the OCI spec, described as “name of the reference”, let’s call that “OCI reference”. Hence the man page names that part So, the We can’t use The path refers to a local filesystem, so Sure, WRT the way to implement this, most of the work will need to happen in the https://github.com/containers/image repository ; we can discuss both the detailed syntax and implementation there. Similarly, the containers/common part would be a PR in that repository; and both will flow into Podman. I have, at least, filed containers/image#1828 , so that this is tracked in the relevant repo. |
@mtrmac Thanks for openning containers/image#1828. I will add the proposal details there. Regarding the use of
|
A friendly reminder that this issue had no activity for 30 days. |
@mtrmac I think this is waiting for a response from you? |
@rhatdan This will happen in c/image, via the tracked RFE, when/if it is implemented there. |
A friendly reminder that this issue had no activity for 30 days. |
Feature request description
Using
digest
in the oci transport currently does not work (podman pull oci:/tmp/local/alpine@sha256:3d426b0bfc361d6e8303f51459f17782b219dece42a1c7fe463b6014b189c86d
) because the parsing only handles the:tag
notation.From the documentation (https://github.com/containers/image/blob/main/docs/containers-transports.5.md#ocipathreference) I'm not sure if this is desired behavior or a bug.
I looked into the problem and found that it is not much needed to support it (see patch below). I'm not sure if this is the right place to request the feature, because all changes have to be made in vendor libs.
Suggest potential solution
I created a path oci_digest_support.txt and tested it on my system:
Have you considered any alternatives?
I considered using
:tag
but i don't have any tags. I only have digests.Additional context
The version section of
podman info
The text was updated successfully, but these errors were encountered: