title: Can docker use http request to pull images from private registry?
body: <p>I want to capture <code>http</code> requests when I pull images from private registry. But it doesn't work. I use <code>wireshark</code> and only capture tcp requests.</p>
  
  <p>I use </p>
  
  <pre><code>sudo docker run -d  -v /opt/registry/data:/var/lib/registry -p 5000:5000  --name myregistry registry:latest
  </code></pre>
  
  <p>to start my private registry. And add </p>
  
  <pre><code>{
     "insecure-registries": [
        "127.0.0.1:5000"
      ]
  }
  </code></pre>
  
  <p>in <code>/etc/docker/daemon.json</code></p>
  
  <p>Use</p>
  
  <pre><code>sudo docker tag ubuntu:latest 127.0.0.1:5000/ubuntu:latest
  </code></pre>
  
  <p>and</p>
  
  <pre><code>sudo docker push 127.0.0.1:5000/ubuntu:latest
  </code></pre>
  
  <p>to push images to private registry.</p>
  
  <p>And use</p>
  
  <pre><code>sudo docker pull 127.0.0.1:5000/ubuntu:latest
  </code></pre>
  
  <p>to pull images from private registry.</p>
  
  <p>But when I add a http url:<a href="http://f1361db2.m.daocloud.io" rel="nofollow noreferrer">http://f1361db2.m.daocloud.io</a> in the <code>registry-mirrors</code>. I can capture <code>http</code> requests when I pull images.</p>
  
  <p>Is this because I deploy the private registry in a wrong way？ Or it doesn't support http protocol in private registry?</p>
  
  <p>Best regards.</p>
  
  <p>Thanks!</p>