CentOS 7 中docker info报错docker bridge-nf-call-iptables is disabled 的解决方法

Server:
 Containers: 4
  Running: 0
  Paused: 0
  Stopped: 4
 Images: 2
 Server Version: 19.03.1
.......................
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

解决办法:

vim /etc/sysctl.conf

在文件尾部添加以下三行内容:

net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 1

然后,再执行命令:

sysctl -p

或者:

sysctl -p 2>/dev/null| grep bridge

现在,我们再执行命令:docker info,就看不到报错了。

猜你喜欢

转载自www.linuxidc.com/Linux/2019-08/159978.htm
0条评论
添加一条新回复