构建Docker镜像时遇见的问题,特做以下记录:

1、编辑 vi /etc/sysctl.conf

2、添加 net.ipv4.ip_forward=1

3、重启network服务 systemctl restart network

05-11 14:45