Dockerfile报yum无法使用
IPv4 forwarding is disabled. Networking will not work.
解决方法: vim /etc/sysctl.conf
net.ipv4.ip_forward=1 ##添加路由转发
或者: vim /usr/lib/sysctl.d/00-system.conf
net.ipv4.ip_forward=1
重启网卡 再测试
IPv4 forwarding is disabled. Networking will not work.
解决方法: vim /etc/sysctl.conf
net.ipv4.ip_forward=1 ##添加路由转发
或者: vim /usr/lib/sysctl.d/00-system.conf
net.ipv4.ip_forward=1
重启网卡 再测试