docker有时候突然停止对外访问了,解决方案如下。
1.vim /etc/sysctl.conf
添加 net.ipv4.ip_forward=1
2.service network restart
3.sysctl net.ipv4.ip_forward
返回net.ipv4.ip_forward = 1搞定
docker有时候突然停止对外访问了,解决方案如下。
1.vim /etc/sysctl.conf
添加 net.ipv4.ip_forward=1
2.service network restart
3.sysctl net.ipv4.ip_forward
返回net.ipv4.ip_forward = 1搞定
© 著作权归作者所有