如果docker的config icc = false,同一主机上的容器是否仍可以相互通信?

时间:2019-01-25 04:25:07

标签: docker networking containers port

我正在运行docker,并了解有关如何为主机上的容器配置网络的更多信息。我想知道设置icc = false是否会完全阻止容器相互通信。

我的码头工人正在使用网桥网络,下面是其配置。请注意,我已将icc设置为false。

[
    {
        "Name": "bridge",
        "Id": "ebc757c63e929f691b4d3098dbd5d7c885f507052ae6d09556dc21e14494cca2",
        "Created": "2019-01-24T23:20:36.897920616-05:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.17.0.0/16",
                    "Gateway": "172.17.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "Containers": {
            "1016234cca722409a177796c383137708ad1d4455649703d3af12b734c6af550": {
                "Name": "determined_lamarr",
                "EndpointID": "9e7b2f50a9701c9a5b47ee18006f32d12e085960abab88fab4a41d31741ddaa3",
                "MacAddress": "02:42:ac:11:00:02",
                "IPv4Address": "172.17.0.2/16",
                "IPv6Address": ""
            },
            "4a6ceb95647a716a376b84149f43270d3eef414c404866438b6b0975448d9c6a": {
                "Name": "infallible_franklin",
                "EndpointID": "3e948160b1ca56dd7c3ee13b913de66d966a5cc1e36a2b317d5baac22fde5cf7",
                "MacAddress": "02:42:ac:11:00:03",
                "IPv4Address": "172.17.0.3/16",
                "IPv6Address": ""
            }
        },
        "Options": {
            "com.docker.network.bridge.default_bridge": "true",
            "com.docker.network.bridge.enable_icc": "false",
            "com.docker.network.bridge.enable_ip_masquerade": "true",
            "com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
            "com.docker.network.bridge.name": "docker0",
            "com.docker.network.driver.mtu": "1500"
        },
        "Labels": {}
    }
]

即使icc = false,该主机上的容器是否仍可以通过暴露的端口进行通信?

0 个答案:

没有答案