1、开启ip转发

echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf

2、重启应用

systemctl restart network

sysctl net.ipv4.ip_forward

systemctl restart docker