docs: Fix IPv6 example for Compose (#3531)

The subnet must be specified as part of `ipam.configs`.

This was unfortunately slightly incorrect due to a mistake in the official Docker docs being propagated, which has since been fixed upstream.

Refer to the official Compose Spec for more details:
 * https://docs.docker.com/compose/compose-file/06-networks/#ipam
This commit is contained in:
Milas Bowman 2023-09-07 18:35:08 -04:00 committed by GitHub
parent c5420530b7
commit 20241691b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,9 @@ Next, configure a network with an IPv6 subnet for your container with any of the
networks:
dms-ipv6:
enable_ipv6: true
subnet: fd00:cafe:face:feed::/64
ipam:
config:
- subnet: fd00:cafe:face:feed::/64
```
??? tip "Override the implicit `default` network"