Docker: problem with pulling from a private registry from another server

I just started learning docker.

I have a private registry running on the same server (server1), and you can extract the test image from it on server1 by entering the following:

docker pull 127.0.0.1:5000/test 

However, when I type the above command from another server, I get the error message below:

 Error: Invalid Registry endpoint: Get http://127.0.0.1:5000/v1/_ping: dial tcp 127.0.0.1:5000: connection refused 

Am I missing something in the configuration?

Any help is appreciated.

Thanks!

+5
source share
2 answers

IP 127.0.0.1 always refers to the local machine. Therefore, when you call "docker pull 127.0.0.1.1000/test" from another computer, you should use the real IP address of the server, not 127.0.0.1.

Perhaps try ping Server first by calling http://XXXXXXX:5000/v1/_ping from another computer to make sure it is accessible and you are using the correct IP address.

0
source

Docker 1.3 added the --insecure-registry option, which allows you to retrieve data from a remote private registry. Refer to this: Configuring a Docker Remote Private Registry

0
source

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


All Articles