vi /etc/sysctl.conf 找到net.ipv4.ip_forward 設置容許轉發 # Controls IP packet forwarding net.ipv4.ip_forward = 1 #使之生效 sysctl -p #重啓docker systemctl restart docker