Skip to content
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

BUG: loading multiple images corrupts tags of existing ones #2821

Closed
h-vetinari opened this issue Apr 1, 2019 · 3 comments · Fixed by #3257
Closed

BUG: loading multiple images corrupts tags of existing ones #2821

h-vetinari opened this issue Apr 1, 2019 · 3 comments · Fixed by #3257
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@h-vetinari
Copy link

h-vetinari commented Apr 1, 2019

[Now that I have access to the nightly ppa's (cf. #2250), here's some more things I found]

Sometimes it's necessary to transfer images in bulk (say, to an environment that has restricted internet access). Docker supports saving/loading multiple images, and nominally, podman does too. Loading multiple images saved by docker fails (xref #2822), while loading multiple images saved by podman go through but are either loading incorrectly or even corrupting tags that might have been correct before.

This is a much subtler issue and thus harder to detect.

Steps to reproduce:

$ sudo podman pull ubuntu:bionic
$ sudo podman pull ubuntu:cosmic

Then, things look as follows.
multi1

Saving and reloading corrupts the tags.

$ sudo podman save docker.io/library/ubuntu:bionic docker.io/library/ubuntu:cosmic > podman_test.tar
$ sudo podman load -i podman_test.tar

In particular, docker.io/library/ubuntu:cosmic gets wrongly tagged to the commit of docker.io/library/ubuntu:bionic, while the actual commit of docker.io/library/ubuntu:cosmic gets untagged.
multi2

Side note: in contrast to docker, there is no auto-completion for file-names after sudo podman load -i

@mheon mheon added the kind/bug Categorizes issue or PR as related to a bug. label Apr 1, 2019
@h-vetinari
Copy link
Author

@haircommander
In view of your comment, and before containers/image#610 is fixed, this should IMO at least error loudly, rather than corrupt existing tags.

@baude
Copy link
Member

baude commented May 29, 2019

@haircommander is this in your domain or do we need to get someone to pick it up?

@haircommander
Copy link
Collaborator

@baude it is generally out of my domain--it could be in my domain given some time (that I don't currently have) :)

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants