docker pull / push无法使用不安全的注册表

时间:2015-11-04 21:14:49

标签: docker boot2docker docker-registry

我安装了docker工具箱,我正在尝试连接到我的私人注册表。

我将以下内容添加到/var/lib/boot2docker/profile

 EXTRA_ARGS='
--label provider=virtualbox --insecure-registry http://myregistry.com:80

'

我能够成功登录注册表。但是当我尝试从/向注册表拉/推时,我收到以下错误。

Error response from daemon: unable to ping registry endpoint
https://myregistry.com:80/v0/ v2 ping attempt failed with error: Get
https://myregistry.com:80/v2/: tls: oversized record received with
length 20527  v1 ping attempt failed with error: Get
https://myregistry.com:80/v1/_ping: tls: oversized record received
with length 20527

任何帮助将不胜感激。感谢

2 个答案:

答案 0 :(得分:3)

我能够解决这个问题。

而不是

--insecure-registry http://myregistry.com:80

我做了

--insecure-registry=myregistry.com

并且有效

答案 1 :(得分:1)

调试的主要方法,如issue 958,是在debug中运行守护进程的docker:

docker -D -d

在您的情况下,无法联系v2注册表,然后尝试v1,给出您看到的错误。
The logs应该告诉你更多。

确保您已关注Deploying a plain HTTP registry