在docker挂载容器的时候报错:
/usr/bin/docker-current: Error response from daemon: driver failed programming external connectivity on endpoint quirky_lamport (21b19bef64d12fcfbd993c968b6cb4c48d21fe9f66d9fa0ea397e3f9d93adf2f): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 172.18.0.6:80 ! -i docker0: iptables: No chain/target/match by that name.
解决步骤:
[= root@ miuyun /test = ]# pkill docker
[= root@ miuyun /test = ]# iptables -t nat -F
[= root@ miuyun /test = ]# ifconfig docker0 down
[= root@ miuyun /test = ]# yum install bridge-utils -
[= root@ miuyun /test = ]# brctl delbr docker0
[= root@ miuyun /test = ]# systemctl restart docker
然后就可以了