简体   繁体   中英

Docker cannot connect to overlay ipv6 network

I've created docker network

docker network create --driver=overlay --ipv6 --attachable cqxipv6

docker network inspect cqxipv6 shows

    {
        "Name": "cqxipv6",
        "Id": "u1t2l7jdze89sey8j9oed9az8",
        "Created": "0001-01-01T00:00:00Z",
        "Scope": "swarm",
        "Driver": "overlay",
        "EnableIPv6": true,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": []
        },
        "Internal": false,
        "Attachable": true,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": null,
        "Options": {
            "com.docker.network.driver.overlay.vxlanid_list": "4098"
        },
        "Labels": null
    }
]

I've tried to run a container using the created network

docker run -it --name mydocker --rm --network cqxipv6 hub.docker.com/centos:centos6.8 /bin/bash

And I am getting this error

docker: Error response from daemon: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded.

Any idea what this mean and how to fix it?

Thank you

提供子网后问题消失

docker network create --driver overlay --ipv6 --subnet=2001:3984:3989::/80 --attachable cqxipv6

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM