centos 7 docker 启动了进入一个容器出现如下错误
WARNING: IPv4 forwarding is disabled. Networking will not work.
解决办法:
vi /etc/sysctl.conf
net.ipv4.ip_forward=1 #添加这段代码
#重启服务
systemctl restart docker
centos 7 docker 启动了进入一个容器出现如下错误
WARNING: IPv4 forwarding is disabled. Networking will not work.
解决办法:
vi /etc/sysctl.conf
net.ipv4.ip_forward=1 #添加这段代码
#重启服务
systemctl restart docker