问题描述
服务器网络由DHCP更改成STATIC后,docker服务提示
WARNING: IPv4 forwarding is disabled. Networking will not work.
解决方案
1.在/etc/sysctl.conf
中增加如下配置
net.ipv4.ip_forward=1
2.重启网络
service network restart
服务器网络由DHCP更改成STATIC后,docker服务提示
WARNING: IPv4 forwarding is disabled. Networking will not work.
1.在/etc/sysctl.conf
中增加如下配置
net.ipv4.ip_forward=1
2.重启网络
service network restart