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

Comments

@Johannestegner
Copy link

@Johannestegner Johannestegner commented Nov 1, 2019

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

This comment has been minimized.

Copy link
Member

@tonistiigi tonistiigi commented Nov 7, 2019

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 question label Nov 7, 2019
@Johannestegner

This comment has been minimized.

Copy link
Author

@Johannestegner Johannestegner commented Nov 7, 2019

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

@tonistiigi

This comment has been minimized.

@Johannestegner

This comment has been minimized.

Copy link
Author

@Johannestegner Johannestegner commented Nov 7, 2019

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!

@tonistiigi tonistiigi closed this Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.