51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

WARNING: bridge-nf-call-iptables is disabled解决

执行docker info出现如下警告
WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled

|-----|--------------------------------------------------------------------------------------------| | 1 2 | WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled |

解决办法:
vi /etc/sysctl.conf

|---|---------------------| | 1 | vi /etc/sysctl.conf |

添加以下内容
net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1

|-----|--------------------------------------------------------------------------------| | 1 2 | net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 |

最后再执行
sysctl -p

|---|-----------| | 1 | sysctl -p |

此时docker info就看不到此报错了

赞(0)
未经允许不得转载:工具盒子 » WARNING: bridge-nf-call-iptables is disabled解决