docker 安装报错 IPv4 forwarding is disabled. Networking will not work
创建容器的时候报错WARNING: IPv4 forwarding is disabled. Networking will not work. 添加如下代码: 重启network服务 完成以后,删除错误的容器,再次创建新容器,就不再报错了。问题:
# docker run -it -p 30001:22 --name=centos-ssh centos /bin/bashWARNING: IPv4 forwarding is disabled. Networking will not work.123
解决办法:
# vim /usr/lib/sysctl.d/00-system.conf1
net.ipv4.ip_forward=11
# systemctl restart network1
评论 (0)