1. 程式人生 > >docker提示IPv4 forwarding is disabled

docker提示IPv4 forwarding is disabled

問題描述
伺服器網路由DHCP更改成STATIC後,docker服務提示

WARNING: IPv4 forwarding is disabled. Networking will not work.
1
解決方案
1.在/etc/sysctl.conf中增加如下配置

net.ipv4.ip_forward=1
1
2.重啟網路

service netwo