title: kubeadm dind won't pull from insecure registry on http
body: <p>I'm trying to use <a href="https://github.com/kubernetes-sigs/kubeadm-dind-cluster" rel="nofollow noreferrer">kubeadm dind</a>, but I'm having trouble with private registries.  I created a docker private registry, which is running on http, but kubernetes running in dind refuses to use http, and keeps trying to download using https.</p>
  
  <p>The error I'm receiving is this...</p>
  
  <blockquote>
    <p>Failed to pull image "192.168.2.5:5000/inotes-init-db:1.0.18": rpc
    error: code = Unknown desc = Error response from daemon: Get
    <a href="https://192.168.2.5:5000/v2/" rel="nofollow noreferrer">https://192.168.2.5:5000/v2/</a>: http: server gave HTTP response to HTTPS
    client</p>
  </blockquote>
  
  <p>But the registry is running on http...</p>
  
  <pre><code>$ curl -X GET http://192.168.2.5:5000/v2/_catalog 2&gt; /dev/null| jq
  {
    "repositories": [
      "inotes-init-db",
      "intelli-notes"
    ]
  }
  </code></pre>
  
  <p>As you can see above, it works fine on http, but if I try https, it fails...</p>
  
  <pre><code>$ curl -X GET https://192.168.2.5:5000/v2/_catalog 
  curl: (35) gnutls_handshake() failed: An unexpected TLS packet was received
  </code></pre>
  
  <p>I also thought I could maybe access the kubernetes nodes to update their <code>/etc/default/docker.json</code> file, but I can't shell into them.</p>
  
  <p>So, how do I get kubeadm to use http?</p>