title: `Failed to solve with frontend dockerfile.v0...` how to tackle?
body: <p>I have the following <code>Dockerfile</code>:</p>
  <pre><code># syntax=docker/dockerfile:1
  FROM windows
  CMD echo Hello World!
  </code></pre>
  <p>I go to the folder where it is contained and run the command:</p>
  <pre><code>docker build -t myapp .
  </code></pre>
  <p>Here is the output I am getting:</p>
  <pre><code>#1 [internal] load build definition from Dockerfile
  #1 sha256:a1d3c4a6e12f4cddf4afffc562b1433934c473851b755b2abc3f2fde935a1a92
  #1 transferring dockerfile: 31B done
  #1 DONE 0.0s
  
  #2 [internal] load .dockerignore
  #2 sha256:fb211a3db6387cb686b1196a6ecf918d5e247355af1defb5650b7e56a616141b
  #2 transferring context: 2B done
  #2 DONE 0.0s
  
  #3 [internal] load metadata for docker.io/library/windows:latest
  #3 sha256:d7ef60db0c57c36d3b2205b072a719bb2fde4c4f6da14ba36cfb712dae5b2314
  #3 ...
  
  #4 [auth] library/windows:pull token for registry-1.docker.io
  #4 sha256:f2ddcdfd41cd000ab0347326f1abf8fae77a85d55a3cccd4448d5b972ac3e584
  #4 DONE 0.0s
  
  #3 [internal] load metadata for docker.io/library/windows:latest
  #3 sha256:d7ef62dd0c57c36a3b2205b072b719bb2fde4b7f6ea31ba36cfb723dae5b2314
  #3 ERROR: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
  ------
   &gt; [internal] load metadata for docker.io/library/windows:latest:
  ------
  failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
  </code></pre>
  <p>I am very new to Docker, so I can not understand what is causing this error. I do not know how to check if I logged in in Dockedr Hub or not and I do not know how to check if the base image named <code>windows</code> exists.</p>
  <p><a href="https://stackoverflow.com/questions/64221861/failed-to-resolve-with-frontend-dockerfile-v0">This</a> question is not helpful at all.</p>
  <p>1 My file is called <code>Dockerfile</code>.</p>
  <p>2 I do not know what is the <code>buildkit</code> and I do not know where to put the:</p>
  <pre><code>export DOCKER_BUILDKIT=0
  export COMPOSE_DOCKER_CLI_BUILD=0
  </code></pre>
  <p>3 I just freshly installed the Docker. I tried <a href="https://docs.docker.com/get-started/02_our_app/" rel="nofollow noreferrer">this</a> sample application tutorial and it worked just fine for me.</p>
  <p>4 As you can see in my <code>Dockerfile</code> I am not trying to copy anything.</p>
  <p>Also, I am getting the following error:</p>
  <pre><code>$ docker pull mcr.microsoft.com/windows
  Using default tag: latest
  Error response from daemon: manifest 
  for mcr.microsoft.com/windows:latest 
  not found: manifest unknown: manifest tagged by &quot;latest&quot; is not found
  </code></pre>
  <p>I can not even pull the <a href="https://hub.docker.com/_/microsoft-windows-servercore-insider" rel="nofollow noreferrer">servercore/insider</a>:</p>
  <pre><code>$ docker pull mcr.microsoft.com/windows/servercore/insider
  Using default tag: latest
  Error response from daemon: manifest for mcr.microsoft.com/windows/servercore/insider:latest not found: manifest unknown: manifest tagged by &quot;latest&quot; is not found
  </code></pre>
  <p>Even though my local Docker is configured to use the Windows containers:</p>
  <p><a href="https://i.stack.imgur.com/1WKCW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1WKCW.png" alt="enter image description here" /></a></p>
  <p>Feels kind of devastating, I do not know why it does not work and how to fix it.</p>