-
Notifications
You must be signed in to change notification settings - Fork 808
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
skopeo inspect tarball:
returns MIMEType as OCI Image spec only
#2338
Comments
The c/image source code is hard coded to OCI Image and there is no logic to determine Docker V2S2. |
Thanks for reaching out. To consume files created by Also consider restructuring your workflow to use a registry, it’s almost certainly going to be more efficient than using tarballs because it allows sharing layer data across images and repositories, and it does not require creating temporary files to consume compressed data. |
My goal is to easily know the format of archives saved by |
That’s fundamentally ambiguous — a tarball can be purposely built to be valid in several formats simultaneously, and to contain a different image in each. Autodetection would increase user risk if consuming third-party tarballs. I think it would make more sense to follow what Docker does (as in containers/podman#21347 ), and to intentionally generate such ambiguous OCI-compatible archives with |
I understand about the ambiguity of tarballs. thank you ! |
The |
Just like I did, people who are not familiar with using skopeo might expect the tool to be perfect. |
That’s very true. How did you find the If it is documented somewhere else, we should fix that. |
I found it in bash-completion while testing the command and tried it. I have not looked for any other documentation other than that. |
... per containers#2338 . Signed-off-by: Miloslav Trmač <[email protected]>
Thanks, #2339 will filter it out. |
... per containers#2338 . Signed-off-by: Miloslav Trmač <[email protected]>
A friendly reminder that this issue had no activity for 30 days. |
If I run
skopeo inspect tarball:
on a Docker V 2, Schema 2 (docker-archive) image saved withpodman save
ordocker save
, the response is an OCI Image.Is it possible to fix it to respond with Docker V2S2?
The text was updated successfully, but these errors were encountered: