docker 启动container的时候出现iptables failed

问题:

docker: Error response from daemon: driver failed programming external connectivity on endpoint redis-sentinel-26389 (80f509db95ec132621c4c2be37b333ce4a8250d13c6c3dbb04e6e0cbe135a35f):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 26389 -j DNAT --to-destination 172.17.0.5:26389 ! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1)).

解决:

 systemctl  restart docker

分析:

   安装docker后,禁用了防火墙,操作系统centos7.  再次生成docker 容器并运行时,导致无法对网关进行配置。

 

你可能感兴趣的:(docker容器,docker,centos)