docker拉/推不与不安全的registry

我安装了docker工具箱,我试图连接到我的私人registry。

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

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

我能够成功login到registry。 但是,当我试图拉/推/registry,我得到以下错误。

 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 

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

我能够解决这个问题。

代替

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

我做了

 --insecure-registry=myregistry.com 

它的工作

debugging的主要方式,如问题958 ,是在debugging中运行守护进程docker:

 docker -D -d 

在你的情况下,v2registry不能被联系,然后试图v1,给出你看到的错误。
日志应该告诉你更多。

确保你已经遵循部署一个普通的HTTPregistry 。