You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
I've got a builder with a custom network with other docker containers attached, during build I have a RUN curl http://my-other-container and I get a Not Found error. The curl works after the container is built and run, as well as in the builder container, but not during the build.
Expected behaviour
I start with a custom network my-network which has my-other-container attached to it.
FROM ubuntu:focal
RUN curl http://my-other-container
then my docker container should build successfully.
Actual behaviour
I get a Could not resolve: my-other-container error from curl and the build fails. I have done docker excec -it buildx_build_container bash and tried the curl and it works as expected. I have also done the curl from the docker container once it is built (after taking the RUN step out) and it works fine as well.
I believe this has been fixed in buildkit v0.13.0 but you need to use --network=host (that effectively means network of your builder container) so that the RUN commands don't use their own (potentially) isolated network.
Contributing guidelines
I've found a bug and checked that ...
Description
I've got a builder with a custom network with other docker containers attached, during build I have a
RUN curl http://my-other-container
and I get aNot Found
error. The curl works after the container is built and run, as well as in the builder container, but not during the build.Expected behaviour
I start with a custom network
my-network
which hasmy-other-container
attached to it.I create a custom builder
and then build my Dockerfile
where my dockerfile is
then my docker container should build successfully.
Actual behaviour
I get a
Could not resolve: my-other-container
error fromcurl
and the build fails. I have donedocker excec -it buildx_build_container bash
and tried the curl and it works as expected. I have also done the curl from the docker container once it is built (after taking the RUN step out) and it works fine as well.Buildx version
github.com/docker/buildx v0.11.2 9872040
Docker info
No response
Builders list
Configuration
Build logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: