创建容器时[Warning] IPv4 forwarding is disabled. Networking will not work.
创建容器时[Warning] IPv4 forwarding is disabled. Networking will not work.
解决办法:
在docker的宿主机中更改以下
[root@localhost ~]# vi /usr/lib/sysctl.d/00-system.conf
添加如下代码:
net.ipv4.ip_forward=1
重启network服务
[root@localhost ~]#systemctl restart network
[root@localhost ~]#systemctl restart docker
注:操作系统:CentOS7
版权声明:本文为下一朵云发布文章,转载请附上原文出处链接和本声明。
本文链接:https://www.orcy.net.cn/1053.html
广告:HCIE-Security认证课程辅导资料(付费)
本文链接:https://www.orcy.net.cn/1053.html
广告:HCIE-Security认证课程辅导资料(付费)
发表评论