您的位置:首页 > 运维架构 > Docker

Centos 7 docker 启动容器iptables 报No chain/target/match by that

2018-01-10 00:00 826 查看
摘要: Docker Centos7 上安装Registry

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐