Docker iptables failed

2019-03-05  本文已影响0人  stackwei

启动 docker 容器时报错,提示 iptables failed 。

1.问题回顾

>docker container start redis

2.报错信息

Error response from daemon: driver failed programming external connectivity on endpoint redis (00c37eb7fbd8a9650a32ed84444736eb4dee6313d5493ba02aa60d5831ab1e31): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 6379 -j DNAT --to-destination 172.17.0.2:6379 ! -i docker0: iptables: No chain/target/match by that name.

(exit status 1))

Error: failed to start containers: redis

3.解决方法

方法一:重启 Docker ,重新启动容器,即可解决此问题。

4.系统环境

CentOS Linux release 7.6.1810 (Core)

firewall 防火墙

docker info:Server Version: 18.09.3

5.报错原因

暂未知。

上一篇下一篇

猜你喜欢

热点阅读