title: Docker for Desktop error during connect: Post A connection attempt failed because the connected party did not properly
body: <p>I have freshly installed Docker for Desktop Edge in Windows 10 Home and try to build an image using the docker build command. But unfortunately, it didn't work for me, and got the below error :</p>
  <p>CMD -   <code>docker build -t heet1996/post:0.0.1 .</code></p>
  <pre><code>error during connect: Post https://192.168.99.100:2376/v1.40/build?buildargs=%7B%7D&amp;cachefrom=%5B%5D&amp;cgroupparent=&amp;cpuperiod=0&amp;cpuquota=0&amp;cpusetcpus=&amp;cpusetmems=&amp;cpushares=0&amp;dockerfile=Dockerfile&amp;labels=%7B%7D&amp;memory=0&amp;memswap=0&amp;networkmode=default&amp;rm=1&amp;session=na8ugnpn6d8gnxl3z8ppx4gap&amp;shmsize=0&amp;t=heet1996%2Fpost%3A0.0.1&amp;target=&amp;ulimits=null&amp;version=1: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
  </code></pre>
  <p><a href="https://i.stack.imgur.com/4qEsK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4qEsK.png" alt="enter image description here" /></a></p>
  <p>Earlier I was using a docker toolbox so I had to remove all the environment variables related to the Docker in my User variables before installing Docker for Desktop. <strong>After a lot of search on GitHub issues, I am still not getting the solution.</strong></p>
  <p>This is what I found in my service.txt file (C:\ProgramData\DockerDesktop\service.txt)</p>
  <p><code>[18:27:22.232][LoggingMessageHandler][Info   ] [f9b6b957] &lt;Server end&gt; POST http://localhost/dns/refresh-hosts -&gt; 204 NoContent (took 118ms)</code></p>