今天使用docker,出现了如下报错
WARNING: IPv4 forwarding is disabled. Networking will not work
修改配置文件:
vi /usr/lib/sysctl.d/00-system.conf
追加
net.ipv4.ip_forward=1
接着重启网络及docker
systemctl restart network
service docker restart
今天使用docker,出现了如下报错
WARNING: IPv4 forwarding is disabled. Networking will not work
修改配置文件:
vi /usr/lib/sysctl.d/00-system.conf
追加
net.ipv4.ip_forward=1
接着重启网络及docker
systemctl restart network
service docker restart