title: Docker Error when proxy is set : proxyconnect tcp: dial tcp: lookup http: no such host
body: <p>I am facing one weird issue with docker. We have a corporate proxy and using docker on Windows server 2016.     </p>
  
  <p>I am trying to pull docker image from dockerhub.</p>
  
  <p>Started facing this issue recently. It was working fine earlier.</p>
  
  <p><strong>Steps</strong></p>
  
  <p>1) Set HTTP and HTTPS Proxy</p>
  
  <p>2) Executed docker pull hello-world:nanoserver</p>
  
  <pre><code>Error response from daemon: Get https://registry-1.docker.io/v2/: proxyconnect tcp: dial tcp: lookup http: no such host
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/FZ7G0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FZ7G0.png" alt="enter image description here"></a></p>
  
  <p>Any idea whats going wrong here. I have couple of other machines having same setting and works fine. </p>
  
  <p><strong>Update 1:</strong> <strong>06/03/2019</strong></p>
  
  <p>I did some trial and error and found that docker version is the culprit here.</p>
  
  <p>I installed docker 17.06.2-ee-17, 17.06.2-ee-16 and tried pulling image. It worked fine. </p>
  
  <p><a href="https://i.stack.imgur.com/Fu4lE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Fu4lE.png" alt="enter image description here"></a></p>
  
  <p>So now question is what is wrong with latest 3 versions of docker ee for windows. i.e 17.06.2-ee-18,17.06.2-ee-19,17.06.2-ee-20 which is giving me this error.</p>