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

Import multi-arch tarball for tag and push #186

Closed
Johannestegner opened this issue Nov 1, 2019 · 4 comments
Closed

Import multi-arch tarball for tag and push #186

Johannestegner opened this issue Nov 1, 2019 · 4 comments
Labels
kind/question Further information is requested

Comments

@Johannestegner
Copy link

In my workflow I usually have a step between build and push, in which I run some tests on the image (often in the form of a tarball or local image), when I use 'standard docker' I just load the image locally and test it that way, but when doing multi platform builds, that is a bit more of an issue, seeing I cant import multi-arch images(?).

What I figured would be the best way to do this is to export the image to tar or OCI-tar and then run the tests on that, and when tests are done, import the tarball and push it to docker. Here comes my issue: I can't for the life of me figure out how to load the tarball and then tag and push it to my registries...

Is there any documentation on this? Is it even possible?
I know that the docker image load and docker image import commands exist, but neither of those seem to support multi-arch images as of right now.

@tonistiigi
Copy link
Member

Yes, in 19.03 docker load does not support loading multi-arch images. You either need to use a local registry or build a single-arch image for your local steps that you can later merge to multi-arch in registry with buildx imagetools create

@tonistiigi tonistiigi added the kind/question Further information is requested label Nov 7, 2019
@Johannestegner
Copy link
Author

Ahh I see, that's annoying... Are there any plans to add ta feature like this? Cause it would be quite useful! :)

@tonistiigi
Copy link
Member

@Johannestegner
Copy link
Author

Ahh that's great!
Guess we could close this issue then if you guys don't feel that it have some purpose :)

Thanks for info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants