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 。
- Boot2docker在没有共享文件夹的Windows上很慢
- 如何在Ubuntu上安装Cloud Foundry CLI
- 在Windows 7上运行Hydrosphere Mist Docker
- 从iOS模拟器访问docker容器
- 如何configurationboot2docker启动我的容器?
- 来自现有Rails / Unicorn / MySQL应用程序的Docker镜像
- Vagrant – Windows上的Docker提供程序 – Rsync失败
- 为什么要将数据容器从数据库容器中分离出来比把数据容量从磁盘中分离出来要好呢?
- 想要ssh进入一个正在运行的Docker容器在CentOs Image中运行