Skip to content

Commit 4fcf3b9

Browse files
committed
engine: fix ipv6 example for Compose
See https://github.com/compose-spec/compose-spec/blob/796804a634e4a1fd48a70f0b0b0e02f1a3a97890/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 <[email protected]>
1 parent 9fc33ab commit 4fcf3b9

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

content/config/daemon/ipv6.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ The following steps show you how to create a Docker network that uses IPv6.
5454
- Using a Docker Compose file:
5555

5656
```yaml
57-
networks:
58-
ip6net:
59-
enable_ipv6: true
60-
subnet: 2001:0DB8::/112
57+
networks:
58+
ip6net:
59+
enable_ipv6: true
60+
ipam:
61+
config:
62+
- subnet: 2001:0DB8::/112
6163
```
6264

6365
You can now run containers that attach to the `ip6net` network.
@@ -214,4 +216,4 @@ subnet supports 65 536 IPv6 addresses.
214216

215217
## Next steps
216218

217-
- [Networking overview](../../network/index.md)
219+
- [Networking overview](../../network/index.md)

0 commit comments

Comments
 (0)