docker 端口映射错误解决 iptables: No chain/target/match by that name.

解决方案:

1、先看能不能ping通网络。

ping baidu.com

若能依次执行以下命令

2、安装工具包

yum install net-tools -y 

yum install bridge-utils -y

3、pkill docker

4、iptables -t nat -F

5、ifconfig docker0 down

6、brctl delbr docker0

7、systemctl restart docker 
 

Logo

一站式 AI 云服务平台

更多推荐