3

Unable to create docker image using git bash (windows 10) created following Dockerfile

FROM debian:sid
RUN apt-get -y update
RUN apt-get install nano
CMD ["bin/nano", "/tmp/notes"]

$ docker build -t example .

Get Error:

$ docker build -t example .
[+] Building 0.0s (3/3) FINISHED
=> [internal] load build definition from Dockerfile                                                                  
=> => transferring dockerfile: 31B                                                                                
=> [internal] load .dockerignore                                                                                  
=> => transferring context: 2B                                                                                           

=> ERROR [internal] load metadata for docker.io/library/debian:sid                                             
------
> [internal] load metadata for docker.io/library/debian:sid:
------
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: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fdebian%3Apull&service=registry.docker.io: dial tcp 3.211.199.249:443: i/o timeout
  • steps tried: restart terminal, tried on cmd, restart docker desktop - no go

please advise, thank you

1 Answer 1

4

The error mentions failed to fetch oauth token
Have you tried to run

docker login

in your terminal prior to running the build command?

Sign up to request clarification or add additional context in comments.

9 Comments

thanks for your response $ docker login --username=<my_username> Password: Login Succeeded It's still the same
What happens next when you run the docker build -t example . command?
I get the same error as mentioned in the question, => ERROR [internal] load metadata for docker.io/example/nanoer:latest
Are you certain it is the same error? The error you've put in the question reads ERROR [internal] load metadata for docker.io/library/debian:sid ... Is the entire error message present in the question? The final line gives more details... Are the details for the error with nanoer:latest the same as the ones for debian:sid?
sorry, I was trying to edit Dockerfile => ERROR [internal] load metadata for docker.io/library/debian:sid 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: I get the same error
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.