Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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: #769

Open
rdorpia opened this issue Sep 15, 2021 · 10 comments

Comments

@rdorpia
Copy link

rdorpia commented Sep 15, 2021

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

@crazy-max
Copy link
Member

crazy-max commented Sep 16, 2021

@rdorpia Might be linked to moby/buildkit#2313 (comment) (cc @thaJeztah)

@tonistiigi
Copy link
Member

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.

@femans
Copy link

femans commented Dec 28, 2021

This is a firewall issue. You need to set your firewall to allow sharing the connection. MicrosoftDocs/WSL#481

@samarth2503
Copy link

samarth2503 commented Apr 10, 2022

DockerImage

@samarth2503
Copy link

Any one please help me out with this

@DES-Destry
Copy link

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
Copy link

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.

@mitchmeyer1
Copy link

mitchmeyer1 commented Jun 13, 2022

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

@sheetalj2205
Copy link

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?

@cforce
Copy link

cforce commented Feb 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants