-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Build cannot export to registry on localhost #94
Comments
I guess we can just switch the container to host netns. It is privileged anyway so shouldn't be a problem but we probably want to allow configuring rootless in this driver as well in the future. |
This is a rare enough situation for me that I'd be more than happy with an option somewhere, and the default is to have more isolation inside a container. Perhaps the endpoint/build context could include some added options, e.g.
|
I have the same issue I guess. |
Just got hit by this. Is there any possible workaround? I don't want to have to publish to dockerhub to be able to experiment with multi-arch builds. |
Use |
cc @tonistiigi For anyone reaching this thread in the future: The version bundled with docker
The above version doesn't have My best bet seems to be to just use the "releases" page of this repo to download the I actually couldn't get |
@tonistiigi any idea how to pass the |
(I have |
(If this doesn't have a solution I'm happy to open a separate issue for it) |
@dt-rush Use |
@tonistiigi should we not be using the |
Seems a bit cumbersome to have to maintain a config file in a globally-accessible location, for each build no matter where we run I could try to PR this? |
This flag is only for |
@tonistiigi Ah, I see, you use it once during create for the builder. That's nice. But my last question, I hope is: what do you mean by "if you use docker driver"? The default builder for docker, without |
@dt-rush https://github.com/docker/buildx#building-with-buildx explains drivers and you can see it with |
@tonistiigi as I thought, cheers. Thanks for all the replies!!! |
Hi there, Can someone help and compile a summary from this issue? |
While setting up a local demo, I found that buildx is unable to access a registry server running on localhost. I can see that my registry server is listening on port 5000 with a curl command. This is with the docker-container driver, so I suspect that container is not using the host namespace and therefore cannot see any services running on localhost.
Note this is a low priority issue for me, I'd much rather see #80 solved.
The text was updated successfully, but these errors were encountered: