-
Notifications
You must be signed in to change notification settings - Fork 510
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 build option "--hostname" for buildx to be able to customize hostname during build image #474
Comments
I guess we can start by adding a build-arg with |
Hi @tonistiigi At this moment can we call buildx by specifying buildkit options, i.e., if I want to call "--opt hostname=testtest" of buildctl by buildx, is any way to do it? Like this one but it's not working by using ---config as described in documentation: https://github.com/moby/buildkit/blob/master/docs/buildkitd.toml.md |
we shouldn't set it per builder, but per build. eg. |
ping if someone interested to implement it |
Any updates on this issue? |
Or any workaround how to pass buildkit options from buildx? |
Any updates on this issue? |
HI @jingxiaolu |
So how do we set hostname with this? |
Just to use build arg moby/buildkit#2373 |
Hi,
As part of this task: moby/buildkit#1301 buildkit now supports for customizing hostname like this:
buildctl build --frontend=dockerfile.v0 --local dockerfile=. --local context=. --opt hostname=testtest
I want to ask to add this ability to buildx itself to be able to use it like:
docker build --hostname=testtest -t host .
Thanks,
Yosef
The text was updated successfully, but these errors were encountered: