title: Building docker image fails with failed to fetch anonymous token, TLS handshake timeout
body: <p>I got a problem while creating a docker image using <code>docker build -t image_name .</code>. When I execute it I get errors:</p>
  <pre class="lang-none prettyprint-override"><code> =&gt; [internal] load build definition from Dockerfile                                                               0.1s
   =&gt; =&gt; transferring dockerfile: 32B                                                                                0.0s
   =&gt; [internal] load .dockerignore                                                                                  0.0s
   =&gt; =&gt; transferring context: 2B                                                                                    0.0s
   =&gt; ERROR [internal] load metadata for docker.io/library/java:8                                                    0.2s
  ------
   &gt; [internal] load metadata for docker.io/library/java:8:
  ------
  failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unknown desc = failed to fetch anonymous token: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fjava%3Apull&amp;service=registry.docker.io: net/http: TLS handshake timeout
  </code></pre>