-
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 not saving multiple images #2669
Comments
@haircommander PTAL |
I got bitten by this bug as well. Saved multiple entries, all pointing to the same image... Guess I will use multiple files as a workaround, but would be good if it could be fixed ? |
@haircommander Any update on this? |
1 similar comment
@haircommander Any update on this? |
still waiting on containers/image#610 . I don't have time currently to tackle it on c/image side |
My workaround was to use one tarball for each image, and a for loop to load them one-by-one.
|
@haircommander any update on this? |
Unfortunately not, I am not sure I have the bandwidth to tackle it both here and in c/image. |
Ok @vrothberg You want to grab it? |
Let's move discussion over to containers/image#610. I add it to my backlog but I can't commit to a schedule at the moment. |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
This is still a good issue, not sure when we can get someone to work on it? |
podman version
podman info --debug
docker version
docker save multiple images work fine.
podman save multiple images work failed.
|
I fear we have other tasks with higher priority on our tables at the moment. Let's move discussion over to containers/image#610. |
Sadly no progress. |
I am trying to champion podman over docker; however, colleagues use "docker save" to air gap images to a docker-archive tarball. This translates into "podman" not being a drop-in replacement "docker", which is suboptimal. At the least, "podman save" should error out indicating "can't do multiple images" rather than silently succeeding with something that is simply not equivalent to "docker save". |
Thanks for the feedback, @marcfiu! Throwing an error is definitely better. |
I opened #5659 to address your feedback. Note that I didn't error out but log when more than one argument is passed as I don't want others to regress on the current behavior. |
@baude, afaiu this issue should get some attention soon, right? |
A friendly reminder that this issue had no activity for 30 days. |
This is being worked on . |
A friendly reminder that this issue had no activity for 30 days. |
Most of the work is happening in containers/image right now. |
Is this issue still being worked? We would like the ability to load a tar file containing multiple images. |
It's been resolved since Podman 2.2.0 |
I'm sorry but this is not resolved (or regression occured in 2.2.1). |
Could you check it against podman 3.*, which should be in RHEL8.4 which is about to release. |
It works when specifying the |
Should we add a containers.conf value for this? |
Very good thought! We actually implemented that already. The default can be changed via |
We probably should put a whole bunch of other documentation in man pages about containers.conf, but let's settle on this description before we go add other docs. Helps with: containers#2669 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@vrothberg It is very confusing that the command seems runs successfully without I needed to invest an hour to realize, there is an extra option for multiple images. See https://unix.stackexchange.com/questions/703355/how-to-do-offline-installation-of-multiple-images-via-podman-load-save for a reproduction. Thanks for considering! |
@podmod001, thanks for reaching out.
That sounds like a bug and is definitely not part of the design. Please open a new issue, ideally with a reproducer, if you want to see it fixed. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When executing a
podman save
with multiple images only one image is saved.Steps to reproduce the issue:
podman save > images.tar docker.io/busybox:1.27.2 docker.io/metallb/controller:v0.3.1 docker.io/metallb/speaker:v0.3.1
podman import images.tar
podman images
Describe the results you received:
Only the first image is saved and imported.
Describe the results you expected:
All three images should be saved and imported.
The documentation states
podman save
is the equivalent todocker save
. Where asdocker save
can actually save multiple images at once.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: