Skip to content

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

@h-vetinari

Description

@h-vetinari

[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

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions