IPv4 forwarding is disabled. Networking will not work
目录
1 问题
今天在操作 docker 时遇到了一个问题IPv4 forwarding is disabled. Networking will not work
👇
我的系统是 CentOS7.9
2 解决方案
在宿主机执行
echo "net.ipv4.ip_forward=1" >>/usr/lib/sysctl.d/00-system.conf
然后重启网络和 docker
systemctl restart network
systemctl restart docker