You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1016 B
1016 B
title | description | keywords |
---|---|---|
Using a custom network | Create and use a custom network for your build | build, buildx, buildkit, network |
Create a network
named foonet
:
$ docker network create foonet
Create a docker-container
builder
named mybuilder
that will use this network:
$ docker buildx create --use \
--name mybuilder \
--driver docker-container \
--driver-opt "network=foonet"
Boot and inspect mybuilder
:
$ docker buildx inspect --bootstrap
Inspect the builder container and see what network is being used:
{% raw %}
$ docker inspect buildx_buildkit_mybuilder0 --format={{.NetworkSettings.Networks}}
map[foonet:0xc00018c0c0]
{% endraw %}