Skip to content

Commit d2bc218

Browse files
committed
Describe IPv6-only network config
Signed-off-by: Rob Murray <[email protected]>
1 parent e9cb32e commit d2bc218

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

content/manuals/engine/network/_index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ direct routing to containers, see
144144
145145
## IP address and hostname
146146
147+
When creating a network, IPv4 address allocation is enabled by default, it
148+
can be disabled using `--ipv4=false`. IPv6 address allocation can be enabled
149+
using `--ipv6`.
150+
151+
```console
152+
$ docker network create --ipv6 --ipv4=false v6net
153+
```
154+
147155
By default, the container gets an IP address for every Docker network it attaches to.
148156
A container receives an IP address out of the IP subnet of the network.
149157
The Docker daemon performs dynamic subnetting and IP address allocation for containers.

content/manuals/engine/network/drivers/bridge.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,17 @@ $ docker network create --ipv6 --subnet 2001:db8:1234::/64 my-net
232232
If you do not provide a `--subnet` option, a Unique Local Address (ULA) prefix
233233
will be chosen automatically.
234234

235+
## IPv6-only bridge networks
236+
237+
To skip IPv4 address configuration on the bridge and in its containers, create
238+
the network with option `--ipv4=false`, and enable IPv6 using `--ipv6`.
239+
240+
```console
241+
$ docker network create --ipv6 --ipv4=false v6net
242+
```
243+
244+
IPv4 address configuration cannot be disabled in the default bridge network.
245+
235246
## Use the default bridge network
236247

237248
The default `bridge` network is considered a legacy detail of Docker and is not

0 commit comments

Comments
 (0)