mirror of https://github.com/docker/docs.git
engine: fix ipv6 example for Compose (#18119)
See 796804a634/06-networks.md (L168-L196)
(Note: there's a typo there too, which is being fixed as
compose-spec/compose-spec#417. The indentation is wrong, but the
description of the fields/hierarchy is correct.)
Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
parent
9691e6d99e
commit
e0b12724a4
|
|
@ -54,10 +54,12 @@ The following steps show you how to create a Docker network that uses IPv6.
|
|||
- Using a Docker Compose file:
|
||||
|
||||
```yaml
|
||||
networks:
|
||||
ip6net:
|
||||
enable_ipv6: true
|
||||
subnet: 2001:0DB8::/112
|
||||
networks:
|
||||
ip6net:
|
||||
enable_ipv6: true
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 2001:0DB8::/112
|
||||
```
|
||||
|
||||
You can now run containers that attach to the `ip6net` network.
|
||||
|
|
|
|||
Loading…
Reference in New Issue