docker buildx create --name mybuilder --driver-opt network=host

Category: Docker

docker buildx create --name mybuilder --driver-opt network=host

Create a builder with host network access

driver-opt passes options to the builder's driver; network=host lets BuildKit containers use the host's network directly, useful behind VPNs or with private registries. The docker-container driver runs builds in an isolated container. Select the builder with --use afterwards.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.