File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
content/manuals/engine/network Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff 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+
147155By default, the container gets an IP address for every Docker network it attaches to.
148156A container receives an IP address out of the IP subnet of the network.
149157The Docker daemon performs dynamic subnetting and IP address allocation for containers.
Original file line number Diff line number Diff line change @@ -232,6 +232,17 @@ $ docker network create --ipv6 --subnet 2001:db8:1234::/64 my-net
232232If you do not provide a ` --subnet ` option, a Unique Local Address (ULA) prefix
233233will 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
237248The default ` bridge ` network is considered a legacy detail of Docker and is not
You can’t perform that action at this time.
0 commit comments