-
Notifications
You must be signed in to change notification settings - Fork 501
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
how to buid image using base image on local repo #301
Comments
I don't know what you mean by local repo. For registry on the localhost you need to put the builder container to host network with |
@tonistiigi Given that, then why does the documentation say this under
I believe I misunderstood what the documentation was telling me, and it is like you said from above. Please correct me if I'm wrong, I'm brand new to all of this and I'm learning. |
@manofthelionarmy That seems unrelated. Current versions of Docker have no concept of a local multi-arch image, therefore there is no way to load them and load needs to happen single-arch at a time. Described in https://github.com/docker/buildx#docker . But this is unrelated to accessing images as base image. |
Hey @ishii1648 did you figure it out? I am experiencing the same problem. |
The
with a Dockerfile like
|
I have the same problem. All is working, but no image is created in the local system. |
I'm running into the same issue. I understand the explanation, but I find the
|
If you don't specify I'm closing this one as the initial question has been answered and other comments look unrelated to it. If something was left unanswered open a new issue. |
- docker buildx doesn't allow to easily separate build and push step so `make docker-package` and `make docker-push` needed to be merged into one command - Using locally built image in FROM directive seems impossible with `docker buildx`, so all dockerfiles were merged into one. See: docker/buildx#301 (comment) - AWS_AIM_AUTHENTICATOR_VERSION and GOOGLE_CLOUD_SDK_VERSION were bumped to versions where arm64 binaries are available
- docker buildx doesn't allow to easily separate build and push step so `make docker-package` and `make docker-push` needed to be merged into one command - Using locally built image in FROM directive seems impossible with `docker buildx` - remote docker registry is required. So all dockerfiles were merged into one. See: docker/buildx#301 (comment) - AWS_AIM_AUTHENTICATOR_VERSION and GOOGLE_CLOUD_SDK_VERSION were bumped to versions where arm64 binaries are available
- docker buildx doesn't allow to easily separate build and push step so `make docker-package` and `make docker-push` needed to be merged into one command - Using locally built image in FROM directive seems impossible with `docker buildx` - remote docker registry is required. So all dockerfiles were merged into one. See: docker/buildx#301 (comment) - AWS_AIM_AUTHENTICATOR_VERSION and GOOGLE_CLOUD_SDK_VERSION were bumped to versions where arm64 binaries are available
- docker buildx doesn't allow to easily separate build and push step so `make docker-package` and `make docker-push` needed to be merged into one command - Using locally built image in FROM directive seems impossible with `docker buildx` - remote docker registry is required. So all dockerfiles were merged into one. See: docker/buildx#301 (comment) - AWS_AIM_AUTHENTICATOR_VERSION and GOOGLE_CLOUD_SDK_VERSION were bumped to versions where arm64 binaries are available
I still don't think @ishii1648's original question was answered here, please correct if I'm wrong: when calling
|
Hello. I agree with you @agirault , the question is not answered. @tonistiigi I have the same need: being able to use an image built locally as base image using buildx. Just because we don't have these tags, moving from usual mono arch build to buildx multi arch build is very complicated once the build is not following the "happy path". Having improvements implemented on this topic would really save a lot of time to a lot of people. Thanks. |
I opened #1453 |
I want to build image for another cpu architecture (build image for arm64 on x86 ).
When base image is hosted on dokcer.io, I success to build image.
But when base image is only hosted on local repository, I fail to build image.
Can I build image using base image on local repository?
If so, could you tell me how to build?
base image(ubuntu:18.04) is hosted on dokcer.io -> success
base image(test-buildx) is only hosted on local repository -> fail
The text was updated successfully, but these errors were encountered: