首页 新闻 会员 周边

centos上无法使用docker拉取镜像

0
悬赏园豆:5 [待解决问题]

我在centos上安装了docker,并且也把镜像地址换成了网易的http://hub-mirror.c.163.com,但是还是无法拉取镜像,并且hello-world也执行不了,是什么原因?
Handler for POST /v1.26/containers/create returned error: No such image: hello-world:latest
Error getting v2 registry: Get http://hub-mirror.c.163.com/v2/: net/http: request canceled...ting headers
Attempting next endpoint for pull after error: Get http://hub-mirror.c.163.com/v2/: net/http...ting headers
当我执行 curl http://hub-mirror.c.163.com/v2/时也提示curl: (7) Failed connect to hub-mirror.c.163.com:80; Operation now in progress

灬丶的主页 灬丶 | 初学一级 | 园豆:2
提问于:2019-10-15 11:00
< >
分享
所有回答(1)
0

163的这个地址不对 https://c.163yun.com/hub#/library 这里找,然后按照你找的的pull

2012 | 园豆:21230 (高人七级) | 2019-10-16 08:33

我刚换成了阿里的也不行

支持(0) 反对(0) 灬丶 | 园豆:2 (初学一级) | 2019-10-16 09:34

@灬丶: 阿里云的 参考这个配置加速
163的直接用 https://c.163yun.com/hub#/library/repository/info?repoId=34287 docker pull hub.c.163.com/library/hello-world:latest 就行

支持(0) 反对(0) 2012 | 园豆:21230 (高人七级) | 2019-10-16 13:02

@2012: Error parsing reference: "https://2vkic9g5.mirror.aliyuncs.com/library/hello-world:latest" is not a valid repository/tag: invalid reference format
这个我试了好多种写法docker pull https://2vkic9g5.mirror.aliyuncs.com/library/hello-world:latest

支持(0) 反对(0) 灬丶 | 园豆:2 (初学一级) | 2019-10-16 15:46
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册