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 saved by docker fails #2822

Closed
h-vetinari opened this issue Apr 1, 2019 · 3 comments
Closed

BUG: loading multiple images saved by docker fails #2822

h-vetinari opened this issue Apr 1, 2019 · 3 comments
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. Companion to #2821]

Sometimes it's necessary to transfer images in bulk (say, to an environment that has restricted internet access). Loading images with podman saved by docker works for single images, but not if there's several (however, loading of several images saved by podman does not work either, see #2821).

Saved by vs #images single image multiple images
podman works works
docker works fails

(Note that docker checks all four boxes here, i.e. importing multiple images saved by podman works)

Steps to reproduce:

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

The last command fails with:

ERRO[0001] Error pulling image ref podman_test.tar: Error determining manifest MIME type for docker-archive:podman_test.tar: Unexpected tar manifest.json: expected 1 item, got 2
Failed
ERRO[0001] Error pulling image ref podman_test.tar: Error determining manifest MIME type for dir:podman_test.tar: open podman_test.tar/manifest.json: not a directory
Failed
Error: error pulling "": unable to pull dir:podman_test.tar: unable to pull image: Error determining manifest MIME type for dir:podman_test.tar: open podman_test.tar/manifest.json: not a directory
@mheon mheon added the kind/bug Categorizes issue or PR as related to a bug. label Apr 1, 2019
@haircommander
Copy link
Collaborator

this is a duplicate of #2669 :) I will escalate the fix for this, it's going to require some structural changes, so it may take a little to land unfortunately

@h-vetinari
Copy link
Author

@haircommander
Sorry for not seeing this before - when I last looked (before I got access to the nightlies), it wasn't there yet. Closing this as duplicate.

Note this also plays into #2821, but I'd suggest to leave that open since the spurious retagging is IMO different from the failure to save several images (actually, the log wrongly suggests that it works - at first glance at least).

@haircommander
Copy link
Collaborator

They're two issues from the same root problem, and both would be fixed at the same time, but we can leave it open so other people who encounter it can see it's already a known problem. Thanks for the issues @h-vetinari !

@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

No branches or pull requests

3 participants