title: Docker login always using HTTP instead of HTTPS
body: <p>i've set up a docker registry server within a vm. The server has a ssl-certificate signed by a CA that is within my windows trusted root certificates.</p>
  
  <p>To access the registry I've created a ssh tunnel forwarding my local port 5000 to the vm targeting [localhost:5000]. If I open <a href="https://localhost:5000" rel="nofollow noreferrer">https://localhost:5000</a> on my machine with a browser, everything checks out fine. The cert is considered valid.</p>
  
  <p>Within a shell on the vm, docker login works perfectly fine. It asks for my credentials and stores them. I'm able to push images into the registry as expected.</p>
  
  <p>Whenever I try to login from my developer machine connected via the tunnel, my local docker seems to ignore anything SSL:</p>
  
  <pre><code>C:\WINDOWS\system32&gt;docker login https://localhost:5000
  Username: ******
  Password: ******
  Error response from daemon: Get http://localhost:5000/v2/: dial tcp 127.0.0.1:5000: connect: connection refused
  </code></pre>
  
  <p>docker login seems to use HTTP instead of HTTPS which it is supposed to do. I can't figure out, how to force docker login to use SSL.</p>
  
  <ul>
  <li>I've double checked my local docker-daemon configuration, to ensure I've no "Insecure Registries" defined anywhere.</li>
  <li>I've cleared out my stored credentials in my profile to ensure that nothing strange is happening there.</li>
  </ul>
  
  <p>Any suggestions would be very well appreciated!</p>
  
  <p>Cheers,</p>
  
  <p>Corelgott</p>