docker启动镜像报错

docker启动镜像报错:
docker: Error response from daemon: driver failed programming external connectivity on endpoint zookeeper (8ec82732da443cf46f61edfb05ab05d8fb931a87f29e7b9fb6473afc92686f07): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 2181 -j DNAT --to-destination 192.168.129.2:2181 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).

解决方法:

pkill docker

iptables -t nat -F

ifconfig docker0 down

brctl delbr docker0

service docker restart

参考:https://www.zengjunpeng.com/?id=90
谢谢博主

posted @ 2020-09-16 14:44  taotaozh  阅读(613)  评论(0)    收藏  举报