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

add "env" driver that connects to $BUILDKIT_HOST #23

Closed
AkihiroSuda opened this issue Apr 16, 2019 · 9 comments · Fixed by #1078
Closed

add "env" driver that connects to $BUILDKIT_HOST #23

AkihiroSuda opened this issue Apr 16, 2019 · 9 comments · Fixed by #1078
Labels
kind/enhancement New feature or request

Comments

@AkihiroSuda
Copy link
Collaborator

AkihiroSuda commented Apr 16, 2019

This driver allows creating a buildx instance directly pointing to the existing buildkit endpoint.

docker buildx create --driver=env unix:///var/lib/buildkitd.sock
docker buildx create --driver=env uses BUILDKIT_HOST env value with UNIX sock default.

I guess TLS info is just passed with a custom driver-opt:

docker buildx create --driver=env --driver-opt ca=mycafile.pem https://foobar

rm/stop commands are no-op in this driver.

A better name could be "remote".

@AkihiroSuda AkihiroSuda added the kind/enhancement New feature or request label Apr 16, 2019
@tonistiigi
Copy link
Member

It's possible this could be combined with #21 as #21 doesn't really have an endpoint.

@tonistiigi
Copy link
Member

tonistiigi commented Apr 16, 2019

Otoh, combining may add complexity as #21 is linux only and may require credentials while this could work from anywhere. It would be easier to do this split by using different drivers.

@pchico83
Copy link

+1 This would be awesome!

@Shaked
Copy link

Shaked commented Jun 23, 2021

Any updates regarding this issue? Is it there another way to run buildx with a remote buildkitd?

@developer-guy
Copy link
Contributor

Hello folks, kindly ping 🙋🏻‍♂️✌️ Are there any updates? We (w/@Dentrax) thought that, if it happens, we can be able to use the buildkitd running in lima-vm for this. So, we are so excited about this.

@tonistiigi
Copy link
Member

Nobody is working on it afaik. It should quite easy to add it If somebody wants to take it on. Most of the work would probably be to make sure that CI would test this driver.

@remidebette
Copy link

@jedevc thanks for the feature, what do you think about: docker/for-mac#6149 ?

@remidebette
Copy link

Hi @tonistiigi @jedevc ,
I wanted to work with this, but it seems there is no release containing #1078 ?

Same for https://hub.docker.com/r/docker/buildx-bin/tags

@jedevc
Copy link
Collaborator

jedevc commented Jun 24, 2022

The buildx-bin image has the :master tag which tracks the state of the master branch here on git - that should allow you to use the feature.

You're right, the remote driver is still not in a release of buildx yet, but it will be in the next release of buildx with v0.9. We've got a milestone of issues/prs that are targeted towards that release as well: https://github.com/docker/buildx/milestones/v0.9.0 - it's in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants