启动 docker 容器时报错

错误信息:

iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9300 -j DNAT --to-destination 172.17.0.2:9300 ! -i docker0: iptables: No chain/target/match by that name

解决方法:重启docker

systemctl restart docker

查询已创建容器的命令:docker ps -a

删除已创建容器:docker rm 容器Id

然后重启动容器即可。

原文地址:https://www.cnblogs.com/ming-blogs/p/11184782.html