执行 docker build -f /opt/my/tomcat9/Dockerfile -t mytomcat9:1.0 . 时出现错误!!
WARNING: IPv4 forwarding is disabled. Networking will not work.
解决方法:
vim /usr/lib/sysctl.d/00-system.conf
最后一行加上:
net.ipv4.ip_forward=1
重启网络服务:
systemctl restart network