[英]Docker error to access private registry (Win)
I'm try pulling docker container from my private docker registry. 我正在尝试从我的私人Docker注册表中提取Docker容器。
When I run: 当我跑步时:
docker pull 192.168.0.xxx:5000/container
The result is: 结果是:
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
The registry is running and working with v2, not v1. 注册表正在运行并且正在使用v2,而不是v1。
WhenI run: 当我跑步时:
curl -X GET 192.168.0.xxx:5000/v2/_catalog
the connections works and return the correct json
{"repositories":["container","container2","container3","container4"]}
I'm running in windows 10 with docker 17.03-1-ce-win12 (stable) 我正在Windows 10中使用docker 17.03-1-ce-win12(稳定)
How I can resolve this or force to docker pull to use v2? 如何解决此问题或强制docker pull使用v2?
Log File: 日志文件:
[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
Update: 更新:
docker --version
Docker version 17.03.1-ce, build c6d412e
I don't found a answer... 我找不到答案...
But reinstalling docker works. 但是重新安装泊坞窗的作品。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.