Docker无法连接到覆盖ipv6网络 [英] Docker cannot connect to overlay ipv6 network

查看:519
本文介绍了Docker无法连接到覆盖ipv6网络的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了docker network

I've created docker network

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
    }
]

我试图使用创建的网络运行容器

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

我正在收到此错误

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?

谢谢

推荐答案

在提供子网后该问题消失了

the problem dissappeared after supplying subnet

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

这篇关于Docker无法连接到覆盖ipv6网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆