docker info 警告

1、问题描述

docker info信息如下:

WARNING: IPv4 forwarding is disabled
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

2、解决文案

编辑配置文件

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
net.ipv4.ip_forward=1

重启网络

systemctl restart network

再次查看docker info,警告消失,网络恢复正常

 

posted @ 2021-05-07 14:44  1769987233  阅读(124)  评论(0编辑  收藏  举报