IPv4 forwarding is disabled. Networking will not work.

Dockerfile报yum无法使用

解决方法: vim /etc/sysctl.conf

    net.ipv4.ip_forward=1   ##添加路由转发

或者: vim /usr/lib/sysctl.d/00-system.conf

  net.ipv4.ip_forward=1

重启网卡  再测试

相关文章: