-
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
podman save fails when specifying an image using a digest #5234
Comments
Thanks for opening the issue! I changed it to a feature request as it's documented to not be supported. @mtrmac, do you know why we're not supporting it? I didn't check the specific parts in the code yet but Docker seems to be able doing that. |
If you check the archive that results from (docker save name@digest), it doesn’t contain the name@digest value at all — it’s just not possible, the format (https://github.com/moby/moby/blob/749d90e10f989802638ae542daf54257f3bf71f2/image/spec/v1.2.md ) has a I suppose Podman should mimic the Docker behavior and create an unnamed image in this case, or maybe (probably not?) reject the input outright. |
A friendly reminder that this issue had no activity for 30 days. |
@vrothberg do you think we should do this? |
Sure, why not. AFAICS |
@rhatdan, something for interns? |
Sure unless @sujil02 gets to it first. |
🎺 🎺 🎺 🎶 Let the games begin! |
A friendly reminder that this issue had no activity for 30 days. |
@sujil02 Did you ever get a chance to look at this? |
Nope didn't get a chance, But I can give it a shot later in the week once v2 system prune I am working on is in. |
@cdjohnson issue fixes with #6011 |
…iners#5234 Adds check to parse normalized name and create docker archive dst reference for tagged untagged image. Relevant test case added. Signed-off-by: Sujil02 <[email protected]>
@sujil02 do you know which release would have this change ? and roughly when that release would be available ? |
As things stand now, Podman v2.0.0, probably in 4-6 weeks. If this is a critical issue we can consider a backport to the v1.9.x release series. |
@mheon FYI: It looks like Podman v2 no longer has Docker CLI compatibility, so we'll likely need to use Podman v1.9 anyway. |
yes. It would be great if you can backport this change to 1.9.x, we've been using podman heavily along with opm tool to build catalog images for openshift. we are currently are blocked by this since the tool does a save using digests. Also since 2.0.0 is major version bump, we aren't sure what other changes the version may entail. I can help with this , if you need. |
v2 is just under heavy development - it will return to being CLI compatible in a few weeks. We're steadily re-enabling functionality and tests at present. @sujil02 Mind cherry-picking the fix to the v1.9 branch? I can help you if you're not sure how. |
Adds check to parse normalized name and create docker archive dst reference for tagged untagged image. Relevant test case added. Signed-off-by: Sujil02 <[email protected]>
Fixes podman save fails when specifying an image using a digest #5234
In case this is blocking anyone, here's a workaround with skopeo that works for me:
If you're only pulling the image so it can be saved to an archive, then a single command will do it:
|
Already done, AFAIK |
#6032 |
@rhatdan just curious, when will v1.9.2 will be released ( approx) ? |
No idea. It is probably best to pester @mheon. We probably could release new minor versions every couple of weeks. We only want tiny changes, since we are concentrating mainly on podman-2.0 right now. But this is going to take a long time to stabilize. |
Early next week sounds like a reasonable target for a 1.9.2 |
…iners#5234 Adds check to parse normalized name and create docker archive dst reference for tagged untagged image. Relevant test case added. Signed-off-by: Sujil02 <[email protected]>
/kind bug
Description
podman save fails when specifying an image using a digest
Steps to reproduce the issue:
podman pull quay.io/olmtest/single-bundle-index@sha256:dce3d3e858ecfb7f2ddfb0e3550a867faaf39706dfb6da71cab04f909edc428f
podman save quay.io/olmtest/single-bundle-index@sha256:dce3d3e858ecfb7f2ddfb0e3550a867faaf39706dfb6da71cab04f909edc428f -o temp.tar
Describe the results you received:
Error: error getting Docker archive ImageReference for "temp.tar:quay.io/olmtest/single-bundle-index@sha256:dce3d3e858ecfb7f2ddfb0e3550a867faaf39706dfb6da71cab04f909edc428f": docker-archive doesn't support digest references: temp.tar:quay.io/olmtest/single-bundle-index@sha256:dce3d3e858ecfb7f2ddfb0e3550a867faaf39706dfb6da71cab04f909edc428f
Describe the results you expected:
The archive should be created like the Docker CLI does.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: