Reputation: 639
I installed docker toolbox and I am trying to connect to my private registry.
I added the following to /var/lib/boot2docker/profile
EXTRA_ARGS='
--label provider=virtualbox --insecure-registry http://myregistry.com:80
'
I am able to login to the registry successfully. But when I try to pull/push from/to the registry, I get the following error.
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
Any help would be appreciated. Thanks
Upvotes: 5
Views: 4690
Reputation: 639
I was able to resolve the issue.
instead of
--insecure-registry http://myregistry.com:80
I did
--insecure-registry=myregistry.com
and it worked
Upvotes: 3
Reputation: 1329662
The main way to debug, as in issue 958, is to run the daemon docker in debug:
docker -D -d
In your case, the v2 registry was not able to be contacted and then attempted v1, giving the error you see.
The logs should tell you more.
Make sure you have followed Deploying a plain HTTP registry.
Upvotes: 1