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

启动容器的时候,出现如下错误:

Error response from daemon: driver failed programming external connectivity on endpoint gitlab (3450c18f9c440288ff2c85975b70eebe5f3de4dfacb7bb2901501ea1fc935652):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8480 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1))
Error: failed to start containers: 60b4184c0da9

 

解决办法:重启docker服务就可以了

systemctl restart docker

 

posted @ 2019-05-17 08:18  N!CE波  阅读(1207)  评论(0编辑  收藏  举报