Cannot start container web: iptables failed: iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 32797

来源:互联网 发布:金融大数据语言 编辑:程序博客网 时间:2024/06/02 04:32

docker 启动 web 示例报错如下:

Error response from daemon: Cannot start container web: iptables failed: iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 32797 -j DNAT --to-destination 172.17.0.30:5000 ! -i docker0: iptables: No chain/target/match by that name.

解决办法:重建docker0网络恢复

pkill docker iptables -t nat -F ifconfig docker0 down brctl delbr docker0 docker -d service docker restart
阅读全文
0 0