Docker错误访问私有注册表(Win)

时间:2017-06-08 12:40:12

标签: docker docker-registry

我尝试从我的私人码头注册表中拉出docker容器。

当我跑步时:

docker pull 192.168.0.xxx:5000/container

结果是:

Using default tag: latest Pulling repository 192.168.0.24:5000/asdf
Error while pulling image: Get
http://192.168.0.xxx:5000/v1/repositories/asdf/images: dial tcp
192.168.0.xxx:5000: getsockopt: no route to host

注册表正在运行并使用v2,而不是v1。

当我跑步时:

curl -X GET 192.168.0.xxx:5000/v2/_catalog
the connections works and return the correct json
{"repositories":["container","container2","container3","container4"]}

我在Windows 10中使用docker 17.03-1-ce-win12(稳定)运行

我如何解决此问题或强制停靠者使用v2?

日志文件:

[09:34:01.797][ApiProxy       ][Info   ] proxy >> GET /_ping
[09:34:01.797][ApiProxy       ][Info   ] Dial Hyper-V socket 204fbc3f-f971-4eaa-9d9e-20515954572e:23a432c2-537a-4291-bcb5-d62504644739
[09:34:01.799][ApiProxy       ][Info   ] Successfully dialed Hyper-V socket 204fbc3f-f971-4eaa-9d9e-20515954572e:23a432c2-537a-4291-bcb5-d62504644739
[09:34:01.800][ApiProxy       ][Info   ] proxy << GET /_ping
[09:34:01.841][ApiProxy       ][Info   ] proxy >> POST /v1.27/images/create?fromImage=192.168.0.xxx%3A5000%2Fcontainer&tag=latest
[09:34:01.841][ApiProxy       ][Info   ] Dial Hyper-V socket 204fbc3f-f971-4eaa-9d9e-20515954572e:23a432c2-537a-4291-bcb5-d62504644739
[09:34:01.842][ApiProxy       ][Info   ] Successfully dialed Hyper-V socket 204fbc3f-f971-4eaa-9d9e-20515954572e:23a432c2-537a-4291-bcb5-d62504644739
[09:34:14.358][ApiProxy       ][Info   ] proxy << POST /v1.27/images/create?fromImage=192.168.0.xxx%3A5000%2Fcontainer&tag=latest


更新

docker --version
Docker version 17.03.1-ce, build c6d412e

1 个答案:

答案 0 :(得分:0)

我没有找到答案......

但重新安装docker有效。