Docker swarm overlay network does not recognise IPv6 subnets

I am trying to deploy a simple service over IPv6 docker overlay network . But I am facing below issue:

Mar 26 06:25:04 ubuntuipv6 dockerd[6048]: time=“2024-03-26T06:25:04.098631236Z” level=error msg=“Failed creating ingress network: Invalid address fabc:f2ab::1:4: It does not belong to any of this network’s subnets”

Below is the config :slight_smile:

vinay@ubuntuipv6:~$ sudo cat /etc/docker/daemon.json
{
“ipv6”: true,
“fixed-cidr-v6”: “fabc:fabc::/64”,
“experimental”: true,
“ip6tables”: true,
“default-address-pools”: [
{ “base”: “172.17.0.0/16”, “size”: 16 },
{ “base”: “172.18.0.0/16”, “size”: 16 },
{ “base”: “172.19.0.0/16”, “size”: 16 },
{ “base”: “172.20.0.0/14”, “size”: 16 },
{ “base”: “172.24.0.0/14”, “size”: 16 },
{ “base”: “172.28.0.0/14”, “size”: 16 },
{ “base”: “192.168.0.0/16”, “size”: 20 },
{ “base”: “fabc:f1ab::1:0/112”, “size”: 112 },
{ “base”: “fabc:f2ab::1:0/112”, “size”: 112 },
{ “base”: “fabc:f3ab::1:0/112”, “size”: 112 },
{ “base”: “fabc:f4ab::1:0/112”, “size”: 112 }

]
}
vinay@ubuntuipv6:~$


vinay@ubuntuipv6:~$
vinay@ubuntuipv6:~$ docker network inspect docker_gwbridge ingress myapp-net
[
{
“Name”: “docker_gwbridge”,
“Id”: “14f17940bdee76a57ff07b31a482a8a91ba6cba01a16bbc91cc22c22e9f6b0a5”,
“Created”: “2024-03-26T06:02:06.84776071Z”,
“Scope”: “local”,
“Driver”: “bridge”,
“EnableIPv6”: true,
“IPAM”: {
“Driver”: “default”,
“Options”: {},
“Config”: [
{
“Subnet”: “172.18.0.0/16”,
“Gateway”: “172.18.0.1”
},
{
“Subnet”: “fabc:f1ab::1:0/112”,
“Gateway”: “fabc:f1ab::1:1”
}
]
},
“Internal”: false,
“Attachable”: false,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {},
“Options”: {},
“Labels”: {}
},
{
“Name”: “ingress”,
“Id”: “h8chhsn9eh58h0lzoytpp5ak0”,
“Created”: “2024-03-26T06:39:44.223361937Z”,
“Scope”: “swarm”,
“Driver”: “overlay”,
“EnableIPv6”: true,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “fabc:f2ab::1:0/112”,
“Gateway”: “fabc:f2ab::1:1”
},
{
“Subnet”: “169.254.5.0/24”,
“Gateway”: “169.254.5.1”
}
]
},
“Internal”: false,
“Attachable”: false,
“Ingress”: true,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: null,
“Options”: {
“com.docker.network.driver.overlay.vxlanid_list”: “4102,4103”
},
“Labels”: null
},
{
“Name”: “myapp-net”,
“Id”: “84fd20nagxu6ytdxnhpmd8e7f”,
“Created”: “2024-03-26T06:33:59.738014407Z”,
“Scope”: “swarm”,
“Driver”: “overlay”,
“EnableIPv6”: true,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “fabc:f3ab::1:0/112”,
“Gateway”: “fabc:f3ab::1:1”
}
]
},
“Internal”: false,
“Attachable”: true,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: null,
“Options”: {
“com.docker.network.driver.overlay.vxlanid_list”: “4101”
},
“Labels”: null
}
]
vinay@ubuntuipv6:~$


vinay@ubuntuipv6:~$ cat myapp.yml
version: ‘3.8’

networks:
myapp-net:
external: true

services:
myapp_stack:
image: versa/myapp:latest
ports:
- “9999:8080”
networks:
myapp-net:

    #sysctls:
    #- net.ipv6.conf.all.disable_ipv6 = 0
    #- net.ipv6.conf.eth0.proxy_ndp = 1
    #- net.ipv6.conf.eth0.accept_ra = 2
    #- net.ipv6.conf.all.forwarding = 1
    #- net.ipv6.conf.default.forwarding = 1

vinay@ubuntuipv6:~$


Any help very much appreciated .

Please start by formatting correctly, use 3 backticks before and after each config to make it more readable, in yaml ever space matters.