Docker pull / push does not work with insecure registry

I installed the docker toolbar 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 can enter the registry successfully. But when I try to pull / click 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 greatly appreciated. Thanks

+5
source share
2 answers

I managed to solve the problem.

instead

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

I did

 --insecure-registry=myregistry.com 

and he worked

+3
source

The main way to debug, as in issue 958 , is to start the daemon dock when debugging:

 docker -D -d 

In your case, the v2 registry could not be contacted, and then tried to run v1, indicating the error you are seeing.
magazines should tell you more.

Make sure that you have deployed a simple HTTP registry .

0
source

Source: https://habr.com/ru/post/1235250/


All Articles