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
A container is attached to this custom network. That container has an alias which is resolved by Docker networking. A new builder instance is created using docker buildx create --use --name mybuilder --driver docker-container --driver-opt network=build-network
Here are the containers shown in the custom network.
The DHCP assignment is working great, when I docker exec sh into to the builder instance, I can telnet/ping the network alias that is resolved by the containerd DNS. When I look into resolv.conf I see
During the buildx build, the buildkitsandbox cannot reach the network alias within the bridge network. The builder logs are saying
using host network as the default
found worker \"sogslmwr3a37nx3voaw492433\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:33e4ae21cfd1 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/amd64/v4 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/mips64le linux/mips64 linux/arm/v7 linux/arm/v6]
skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist
No non-localhost DNS nameservers are left in resolv.conf. Using default external servers: [nameserver 8.8.8.8 nameserver 8.8.4.4]
The last one is coming from ResolveConf and then it's filling in default Google DNS, which shows up in the resolve.conf of the builder instance
I really do not know where I am wrong. Could there be some undocumented way for buildx command line to instruct buildx to honor the network configuration set on the network attached to the builder?
This could be a game changer; we could have private package registries run on containers and we could use bridge to reach them from the build container context. All this without fear of reconfiguration of /etc/hosts when Network Changes/DHCP IP changes during assignment at the host. Or We could get configuration information at build time from a private vault in the bridge network
The text was updated successfully, but these errors were encountered:
Docker version 20.10.17, build 100c701
BuildX v0.9.1
Docker Desktop for Windows, integrated with WSL2, run under WSL2/Ubuntu 22.04.1 LTS
A custom network was created which has the properties listed below
A container is attached to this custom network. That container has an alias which is resolved by Docker networking. A new builder instance is created using
docker buildx create --use --name mybuilder --driver docker-container --driver-opt network=build-network
Here are the containers shown in the custom network.
The DHCP assignment is working great, when I
docker exec sh
into to the builder instance, I can telnet/ping the network alias that is resolved by the containerd DNS. When I look intoresolv.conf
I seeBuildX/BuildKit
During the
buildx build
, thebuildkitsandbox
cannot reach the network alias within the bridge network. The builder logs are sayingThe last one is coming from ResolveConf and then it's filling in default Google DNS, which shows up in the
resolve.conf
of the builder instanceSimilar Challenges
Brandon's Observation
Issue #175 does not apply to me as I am going all in with buildkit the right way and using bake (see Tõnis's Stand, Tõnis's recommendation)
Conclusion
I really do not know where I am wrong. Could there be some undocumented way for buildx command line to instruct buildx to honor the network configuration set on the network attached to the builder?
This could be a game changer; we could have private package registries run on containers and we could use bridge to reach them from the build container context. All this without fear of reconfiguration of
/etc/hosts
when Network Changes/DHCP IP changes during assignment at the host. Or We could get configuration information at build time from a private vault in the bridge networkThe text was updated successfully, but these errors were encountered: