docker 运行时异常以及解决方案

问题1:

问题描述:

启动所有项目时,爆出No chain/target/match by that name

问题分析:

iptables failed--猜测和网络有关

问题详情:

docker start $(docker ps -a | awk '{ print $1}' | tail -n +2)
Error response from daemon: driver failed programming external connectivity on endpoint scw-order (94ad28e3a821e12edb49ac0d0866fd6449cdac8fd1f02b3fce408f4a8e921016):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9000 -j DNAT --to-destination 172.18.0.2:9000 ! -i br-7670508d1b55: iptables: No chain/target/match by that name.
 (exit status 1))

解决方案:

重启docker服务--> service docker restart

评论 0

还没有评论,来说点什么吧。

提交后需要审核才会公开。