mirror of https://github.com/docker/docs.git
Merge pull request #1146 from shin-/ipv6_networks_compose
Update instructions for IPv6-enabled networks
This commit is contained in:
commit
3af3a8b7a2
|
@ -636,11 +636,11 @@ In the example below, three services are provided (`web`, `worker`, and `db`), a
|
||||||
|
|
||||||
Specify a static IP address for containers for this service when joining the network.
|
Specify a static IP address for containers for this service when joining the network.
|
||||||
|
|
||||||
The corresponding network configuration in the [top-level networks section](compose-file.md#network-configuration-reference) must have an `ipam` block with subnet and gateway configurations covering each static address. If IPv6 addressing is desired, the `com.docker.network.enable_ipv6` driver option must be set to `true`.
|
The corresponding network configuration in the [top-level networks section](compose-file.md#network-configuration-reference) must have an `ipam` block with subnet and gateway configurations covering each static address. If IPv6 addressing is desired, the [`enable_ipv6`](compose-file.md#enableipv6) option must be set.
|
||||||
|
|
||||||
An example:
|
An example:
|
||||||
|
|
||||||
version: '2'
|
version: '2.1'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
@ -654,8 +654,7 @@ An example:
|
||||||
networks:
|
networks:
|
||||||
app_net:
|
app_net:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
driver_opts:
|
enable_ipv6: true
|
||||||
com.docker.network.enable_ipv6: "true"
|
|
||||||
ipam:
|
ipam:
|
||||||
driver: default
|
driver: default
|
||||||
config:
|
config:
|
||||||
|
|
Loading…
Reference in New Issue