title: Can't log into private registry between instances on Play-with-docker
body: <p>I am very new to docker so please bear with me. I am following the documentation on <a href="https://docs.docker.com/registry/deploying/#running-a-domain-registry" rel="nofollow noreferrer">https://docs.docker.com/registry/deploying/#running-a-domain-registry</a></p>
  <p>I have spin up 2 nodes on play-with-docker.com for my learning.</p>
  <p>On Node1 I am able to set up a private registry successfully using the following command</p>
  <pre><code>docker run -d \
    -p 5000:5000 \
    --restart=always \
    --name registry \
    -v &quot;$(pwd)&quot;/auth:/auth \
    -e &quot;REGISTRY_AUTH=htpasswd&quot; \
    -e &quot;REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm&quot; \
    -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
    -v &quot;$(pwd)&quot;/certs:/certs \
    -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \
    -e REGISTRY_HTTP_TLS_KEY=/certs/domain.key \
    registry:2
  </code></pre>
  <p>I was also able to pull and push images from Node1 to the registry. However, when I go on Node2 and try to log in to the registry it gives the following error:</p>
  <pre><code>[node2] (local) root@192.168.0.7 ~
  $ docker login 192.168.0.8:5000
  Username: testuser
  Password: 
  Error response from daemon: Get https://192.168.0.8:5000/v2/: dial tcp 192.168.0.8:5000: connect: connection refused
  </code></pre>
  <p>please let me know what am I missing?</p>