Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions content/manuals/build/builders/drivers/docker-container.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,20 @@ $ docker inspect buildx_buildkit_mybuilder0 --format={{.NetworkSettings.Networks
map[foonet:0xc00018c0c0]
```

To reach a service on the host (for example a local registry or a
development database), put the builder on the host network instead:

```console
$ docker buildx create --use --bootstrap \
--driver docker-container \
--name mybuilder \
--driver-opt network=host
```

The default `docker` driver cannot see Docker overlay networks. Use a
`docker-container` builder with `network=host` (or a user-defined
network, as above) when the build needs that connectivity.

## Further reading

For more information on the Docker container driver, see the
Expand Down