Search code examples
dockerdocker-registry

Pull image from local docker registry with IP


I have created a locale docker registry in my system and pushed one image into it. When I tried to pull image as "docker pull localhost:5000/image_name", it pulls the images from registry. But if I try to pull image as "docker pull 192.168.2.54:5000/image_name" , it gives an error as "Error response from daemon: Get https://192.168.2.54:5000/v1/_ping: EOF ".


Solution

  • It's because you're not running a secure registry. See the notes here about how to use an insecure registry:

    https://docs.docker.com/registry/insecure/