-
Notifications
You must be signed in to change notification settings - Fork 502
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
buildx bake not honouring docker-compose build network mode host #848
Labels
Comments
|
@crazy-max I may be mistaken but is this not it here? |
I'm blind sorry.. So to answer your question, no it's not taken into account by bake but I think we could add it. |
zachary-povey
pushed a commit
to zachary-povey/buildx
that referenced
this issue
Nov 25, 2021
Allows specification of network mode in a bake target. Fixes docker#848 Signed-off-by: Zachary Povey <[email protected]>
zachary-povey
pushed a commit
to zachary-povey/buildx
that referenced
this issue
Nov 25, 2021
Allows specification of network mode in a bake target. Fixes docker#848 Signed-off-by: Zachary Povey <[email protected]>
zachary-povey
pushed a commit
to zachary-povey/buildx
that referenced
this issue
Nov 25, 2021
Allows specification of network mode in a bake target. Fixes docker#848 Signed-off-by: Zachary Povey <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming I have the below, and a docker container running on my machine that exposes port
3000
docker-compose.yml
Dockerfile
docker-compose build
succeedsdocker buildx bake
succeeds when usingdocker-container
driver with--driver-opt network=host
docker buildx build --network=host .
succeeds when using thedefault
builder/docker
driverHowever
docker buildx bake
fails when using thedefault
builder as it can't reachlocalhost:3000
. It feels as though perhapsbuildx bake
might not be usingnetwork: host
specified in thedocker-compose.yml
correctly?The text was updated successfully, but these errors were encountered: