简体   繁体   中英

docker pull/push not working with insecure registry

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

I was able to resolve the issue.

instead of

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

I did

--insecure-registry=myregistry.com

and it worked

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM