Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker何时写入iptables?_Docker_Iptables - Fatal编程技术网

Docker何时写入iptables?

Docker何时写入iptables?,docker,iptables,Docker,Iptables,当Docker守护进程使用icc=true和iptables=true默认值时,在链接--link容器时不会写入iptables。只有当我设置icc=false iptables=true时,在用--link链接容器时才会写入iptables。这是一个错误还是我遗漏了什么?对于--icc=true,容器彼此之间的网络访问不受限制,因此不需要使用iptables规则来支持--link。只有使用--icc=false时,Docker才需要为其创建例外限制。使用--icc=true时,容器彼此之间的网

当Docker守护进程使用icc=true和iptables=true默认值时,在链接--link容器时不会写入iptables。只有当我设置icc=false iptables=true时,在用--link链接容器时才会写入iptables。这是一个错误还是我遗漏了什么?

对于
--icc=true
,容器彼此之间的网络访问不受限制,因此不需要使用iptables规则来支持
--link
。只有使用
--icc=false
时,Docker才需要为其创建例外限制。

使用
--icc=true
时,容器彼此之间的网络访问不受限制,因此不需要使用iptables规则来支持
--link
。只有使用
--icc=false
时,Docker才需要为其创建异常