首先确认是否已经关闭防火墙; 请顺序运行以下命令:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
nmcli connection modify docker0 connection.zone trusted

systemctl stop NetworkManager.service

firewall-cmd --permanent --zone=trusted --change-interface=docker0

systemctl start NetworkManager.service

nmcli connection modify docker0 connection.zone trusted

systemctl restart docker.service