From e0b12724a425c5ca4ff9ee5c952497de77d2ff41 Mon Sep 17 00:00:00 2001 From: Milas Bowman Date: Thu, 7 Sep 2023 08:42:17 -0400 Subject: [PATCH] engine: fix ipv6 example for Compose (#18119) 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 --- content/config/daemon/ipv6.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/content/config/daemon/ipv6.md b/content/config/daemon/ipv6.md index 4c92c9ad03..891dfd643c 100644 --- a/content/config/daemon/ipv6.md +++ b/content/config/daemon/ipv6.md @@ -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. @@ -214,4 +216,4 @@ subnet supports 65 536 IPv6 addresses. ## Next steps -- [Networking overview](../../network/index.md) \ No newline at end of file +- [Networking overview](../../network/index.md)