Hi,
I’m new to docker. I have downloaded docker desktop 4.34.3(170107) in my MAC (apple M2) and started its tutorial from its learning center. I cloned its database and start to build my first image with command “docker build -t welcome-to-docker .”, which is from tutorial “How do I run a container”. I just failed with following message “ERROR [internal] load metadata for docker.io / library / node:18-alpine”. I also attached a screenshot in the post. I have tried several solutions from google, such as:
a) change content “FROM node:18-alpine” to “FROM node:18” in Dockerfile
b) use sudo to run the command as “sudo docker build -t welcome-to-docker .”
c) restart docker
d) try to “docker pull node:18-alpine”
e) enable/disable vpn
Please, use </> button to share codes, terminal outputs, error messages instead of sharing screenshots. That helps others to search for similar issues and us to read it more easily and quote parts of the message so we can help you more quickly. You can find a complete guide in the following post: How to format your forum posts
Hi,
I have tried to logout and login. But it surprised me that I froze in login process. When I use the command docker logout, it works fine. I then use the command docker login, and input my username and password, then it froze. do you have any suggestion on this? thanks.
Hi Deanayalon & rimelek,
thanks very much for your help. From rimelek’s post, probably I’m blocked from China. I may be assigned with wrong DNS, so I can’t access docker.io/library/node:18-alpine. And that could explain why I can’t login through command line.
$ docker compose build
[+] Building 21.3s (3/3) FINISHED docker:desktop-linux
=> [aipan-netdisk-search internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.14kB 0.0s
=> WARN: ConsistentInstructionCasing: Command 'run' should match the case of the command majority (uppercase) (line 36) 0.0s
=> WARN: ConsistentInstructionCasing: Command 'run' should match the case of the command majority (uppercase) (line 37) 0.0s
=> WARN: ConsistentInstructionCasing: Command 'run' should match the case of the command majority (uppercase) (line 38) 0.0s
=> WARN: ConsistentInstructionCasing: Command 'run' should match the case of the command majority (uppercase) (line 39) 0.0s
=> WARN: ConsistentInstructionCasing: Command 'run' should match the case of the command majority (uppercase) (line 40) 0.0s
=> WARN: ConsistentInstructionCasing: Command 'run' should match the case of the command majority (uppercase) (line 41) 0.0s
=> WARN: ConsistentInstructionCasing: Command 'run' should match the case of the command majority (uppercase) (line 42) 0.0s
=> WARN: ConsistentInstructionCasing: Command 'run' should match the case of the command majority (uppercase) (line 53) 0.0s
=> ERROR [aipan-netdisk-search internal] load metadata for docker.io/library/node:18-alpine 21.2s
=> [aipan-netdisk-search auth] library/node:pull token for registry-1.docker.io 0.0s
------
> [aipan-netdisk-search internal] load metadata for docker.io/library/node:18-alpine:
------
failed to solve: node:18-alpine: failed to resolve source metadata for docker.io/library/node:18-alpine: failed to authorize: failed to fetch oauth token: Post "https://auth.docker.io/token": dial tcp 185.60.219.41:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Hi rangerzhou,
I didn’t find a solution for this. It seems the DNS and related information are hacked so that I can’t access right place. Even with those mirror site, I still can’t get a right result. I’m still try to find a “right” mirror place for this. If you have further information, please be kind to share it. Thanks very much.
Maybe it will help someone: in my case, the message was caused simply by not clicking “Verify Email Address” in Docker’s “Please confirm your email address” e-mail. It was my fault, of course. After verifying my email address, everything worked smoothly.