1. 程式人生 > >啟動docker容器 防火牆問題報錯 ! -i docker0' failed: iptables: No chain/target/match by that name.

啟動docker容器 防火牆問題報錯 ! -i docker0' failed: iptables: No chain/target/match by that name.

COMMAND_FAILED: '/sbin/iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 8111 -j DNAT --to-destination 172.17.0.6:8111 ! -i docker0' failed: iptables: No chain/target/match by that name.

 

pkill docker

iptables -t nat -F
ifconfig docker0 down
brctl delbr docker0

重啟docker後解決