cannot access Docker remote registry

I am using docker from a Ubuntu VM. I set up an unsecure registry using the steps mentioned in this link. I can push & pull images from the registry in the host machine but I cannot access the registry from another machine in the same network.

I have done the following –

  • Using host environment variables with Dockerfile
  • Unable to access local network IP from docker container
  • How to replace a Docker data volume with another at runtime?
  • Accessing logs folder of running docker container
  • Dynamic Scalable and adaptive architecture
  • Proper handling of request_uri in double nginx reverse proxy?
    1. Edited the /etc/default/docker and edited the DOCKER_OPTS as follows –

      DOCKER_OPTS="--insecure-registry cmrepo.com:5000"

    2. Restarted the VM .

    3. Started the registry as follows –

      docker run -d -p 5000:5000 --name registry registry:2

    Everything works as expected till this point . I can pull/push images into the registry.

    Now how do I access the registry from another machine . I tried adding an ip-host entry (10.216.20.14 cmrepo.com) in the /etc/hosts file but it din’t help. I can ping 10.216.20.14 from the remote machine but cannot access the registry.

    Can someone point out what is it that I am doing wrong or need to do more?

  • Can not exit from node app, when using docker
  • Debug Nodejs inside Docker container
  • dumb terminal in non-interactive docker
  • Access docker container running in coreos on vagrant vm through browser in host ubuntu host
  • How can I solve the deployment/updating of dockerized app on my VPS?
  • how load mysql extensions dockerfile with Docker, Compose with Pfm and Nginx and Mysql
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.