buildx icon indicating copy to clipboard operation
buildx copied to clipboard

docker build error -> 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:

Open rdorpia opened this issue 3 years ago • 8 comments

Hi everyone, Just to check if you have encountered the below error and was the recommended fixed. Appreciate if someone can provide any inputs.

docker issue

Docker version below: Docker version 20.10.8, build 3967b7d

I'm running ubuntu 20.4 LST in WSL2

rdorpia avatar Sep 15 '21 23:09 rdorpia

@rdorpia Might be linked to https://github.com/moby/buildkit/issues/2313#issuecomment-902353224 (cc @thaJeztah)

crazy-max avatar Sep 16 '21 00:09 crazy-max

Assuming you don't see it all the time it looks like a temp network error on getting DNS. I don't think this error comes directly from credential helper but might be wrong.

tonistiigi avatar Sep 29 '21 04:09 tonistiigi

This is a firewall issue. You need to set your firewall to allow sharing the connection. https://github.com/MicrosoftDocs/WSL/issues/481

femans avatar Dec 28 '21 20:12 femans

DockerImage

samarth2503 avatar Apr 10 '22 07:04 samarth2503

Any one please help me out with this

samarth2503 avatar Apr 10 '22 07:04 samarth2503

I've almost same issue Screen Shot 2022-05-19 at 9 31 22 AM

My environment is MacOS 12.3.1 with Docker Desktop 4.8.2

DES-Destry avatar May 19 '22 03:05 DES-Destry

I've almost same issue Screen Shot 2022-05-19 at 9 31 22 AM

My environment is MacOS 12.3.1 with Docker Desktop 4.8.2

This issue was solved with using docker-compose command instead of docker compose... Very strange issue. Yesterday all works fine with docker compose too.

DES-Destry avatar May 19 '22 03:05 DES-Destry

Just so everyone knows Apple's Screen Time Content Blocker and Docker do not play well. Build errors are common when Screen Time is enabled

mitchmeyer1 avatar Jun 13 '22 20:06 mitchmeyer1

I've almost same issue Screen Shot 2022-05-19 at 9 31 22 AM My environment is MacOS 12.3.1 with Docker Desktop 4.8.2

This issue was solved with using docker-compose command instead of docker compose... Very strange issue. Yesterday all works fine with docker compose too.

It's still giving me the same error. Any other solution?

sheetalj2205 avatar Feb 02 '23 08:02 sheetalj2205

Same here on windows 10

docker buildx build --platform linux/amd64 --progress plain --build-arg RK_ZIP=rk.zip -t rk
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 resolve image config for docker.io/docker/dockerfile:1.3
#3 DONE 0.4s

#4 docker-image://docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2
#4 CACHED

#5 [internal] load .dockerignore
#5 DONE 0.0s

#6 [internal] load build definition from Dockerfile
#6 DONE 0.0s
ERROR: failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = no build stage in current context

cforce avatar Feb 17 '23 11:02 cforce