1.运行Registry出错
[root@localhost ~]# docker run -d -p 5000:5000 -v ~/docker-registry:/tmp/registry registry
d03d54ce1199d18b11c07638ed7963f6a5d3814bdbc32cf1ef2159ebc2c06fd6
docker: Error response from daemon: driver failed programming external connectivity on endpoint inspiring_lewin (c1a0dd7ff97432868aea4fea178bd69dd07eedf0316ffbad56a6101bcfb85e01): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 5000 -j DNAT --to-destination 172.17.0.2:5000 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).
[root@localhost ~]#
操作系统为centos7
2. 解决方法
把防火墙开启来 #systemctl start firewalld