title: How to get remote access to a private docker-registry?
body: <p>I'm trying to setup a private docker registry using the image taken from:
  <a href="https://github.com/docker/docker-registry">https://github.com/docker/docker-registry</a></p>
  
  <p>Just by running:<br>
  <code>docker run -p 5000:5000 registry</code></p>
  
  <p>I can pull/push from/to this repository only from localhost, but if i try to access it from another machine (using a private address on the same LAN) it fails with an error message:</p>
  
  <pre><code>*2014/11/03 09:49:04 Error: Invalid registry endpoint https ://10.0.0.26:5000/v1/': 
  Get https:// 10.0.0.26:5000/v1/_ping: Forbidden. If this private 
  registry supports only HTTP or HTTPS with an unknown CA certificate,
  please add `--insecure-registry 10.0.0.26:5000` to the daemon's 
  arguments. In the case of HTTPS, if you have access to the registry's
  CA certificate, no need for the flag; simply place the CA certificate 
  at /etc/docker/certs.d/10.0.0.26:5000/ca.crt*
  </code></pre>
  
  <p>What drives me crazy is that I can access it successfully using:
  <code>curl 10.0.0.26:5000</code>
  and/or <code>curl 10.0.0.26:5000/v1/search</code></p>
  
  <p>I also don't understand where and how I should pass the <code>--insecure-registry</code> flag.</p>