Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to create docker image using git bash

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

like image 752
Mike730 Avatar asked Mar 29 '26 23:03

Mike730


1 Answers

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

docker login

in your terminal prior to running the build command?

like image 155
Jean-Benoit Harvey Avatar answered Apr 02 '26 09:04

Jean-Benoit Harvey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!