我创建了码头网络
docker network create --driver=overlay --ipv6 --attachable cqxipv6
docker network inspect cqxipv6
显示
{
"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
}
]
我尝试使用创建的网络
运行容器docker run -it --name mydocker --rm --network cqxipv6 hub.docker.com/centos:centos6.8 /bin/bash
我收到此错误
docker: Error response from daemon: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded.
知道这是什么意思以及如何解决它?
谢谢
答案 0 :(得分:0)
在提供子网
后问题消失了docker network create --driver overlay --ipv6 --subnet=2001:3984:3989::/80 --attachable cqxipv6