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搞定
转载于:https://my.oschina.net/u/3768341/blog/1613603