title: Docker build: failed to fetch oauth token for openjdk?
body: <p>I'm having trouble understanding this error when trying to build a project in Docker:</p>
  <pre><code>&gt; [internal] load metadata for docker.io/library/openjdk:11:
  ------
  failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unknown desc = failed to fetch oauth token: unexpected status: 401 Unauthorized'
  </code></pre>
  <p>What does this error mean exactly? Am I missing permissions?</p>
  <p>For reference, this is what my Dockerfile looks like:</p>
  <pre><code>### base jdk image ###
  FROM openjdk:11 as setup
  ENV USER sc_user
  ENV HOME /home/$USER
  ENV REPO $HOME/sc
  RUN useradd -u 9999 $USER
  COPY --chown=$USER build.gradle gradlew $REPO/
  COPY --chown=$USER gradle $REPO/gradle
  USER $USER
  WORKDIR $REPO
  RUN ./gradlew
  
  FROM setup as tdd
  ENTRYPOINT [&quot;./gradlew&quot;, &quot;-t&quot;, &quot;test&quot;]
  
  FROM setup as debug-tdd
  ENTRYPOINT [&quot;./gradlew&quot;, &quot;-t&quot;, &quot;test&quot;, &quot;-PjvmArgs=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005&quot;]
  
  ### build jar ###
  FROM setup as build
  COPY --chown=$USER src $REPO/src
  RUN ./gradlew clean test build generatePomFileForMavenJavaPublication
  </code></pre>