构建了一个容器,启动报这个错,有没有其他人也碰到这个问题的,麻烦留个言,感激不尽
Error response from daemon: Cannot restart container webserver: iptables failed: iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 8099 -j DNAT --to-destination 172.17.0.7:80 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)
Error: failed to restart containers: [webserver]
你对IPTABLES做了什么??给iptables 手动加个chain
iptables -t nat -N DOCKER iptables -t nat -A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
iptables -t nat -A PREROUTING -m addrtype --dst-type LOCAL ! --dst 127.0.0.0/8 -j DOCKER
参考这里https://github.com/docker/docker/issues/1871
收起