我安装了 docker 工具箱,我正在尝试连接到我的私有(private)注册表。
我将以下内容添加到 /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
任何帮助,将不胜感激。谢谢
最佳答案
我能够解决这个问题。
代替
--insecure-registry http://myregistry.com:80
我做了
--insecure-registry=myregistry.com
它奏效了
关于docker pull/push 不适用于不安全的注册表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33532138/