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
neither solution works. I’m frustrated. Can anybody give me a guide? Thanks very much.
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
Chinese Docker Hub Shutdown Situation
Reading time: 4 min read
##
…
# Reproduce
failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/25/25d4f4c53ee345457f55dc77f65dd6e6737f936a178709b2547e51186290202c/data?verify=1718079893-D1%2FpJc%2FKKgeeGYg42JoGk7Utj0U%3D": dial tcp 199.59.149.236:443: i/o timeout
### Expected behavior
_No response_
### docker version
```bash
Client: Docker Engine - Community
Version: 26.1.3
API version: 1.45
Go version: go1.21.10
Git commit: b72abbb
Built: Thu May 16 08:33:49 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 26.1.3
API version: 1.45 (minimum version 1.24)
Go version: go1.21.10
Git commit: 8e96db1
Built: Thu May 16 08:33:49 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.9
GitCommit: 1c90a442489720eec95342e1789ee8a5e1b9536f
nvidia:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
### docker info
```bash
Client: Docker Engine - Community
Version: 26.1.3
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.14.0
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.27.1
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 3
Running: 2
Paused: 0
Stopped: 1
Images: 6
Server Version: 26.1.3
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: nvidia runc io.containerd.runc.v2
Default Runtime: nvidia
Init Binary: docker-init
containerd version: 1c90a442489720eec95342e1789ee8a5e1b9536f
runc version: v1.1.4-0-g5fd4c4d
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
Kernel Version: 5.15.0-107-generic
Operating System: Ubuntu 20.04.6 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.44GiB
Name: bdca-shenzhou
ID: efcb31ba-c29d-4ce5-8dfd-6760f6b0d06c
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http://127.0.0.1:7890
HTTPS Proxy: http://127.0.0.1:7890
Username: pandaman666
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
### Additional Info
_No response_
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.
sigh…
Hi, are you resolved this? I also meet this issue
$ 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.
I have tried several solutions from google, such as:
d) try to “docker pull node:18-alpine”
Except OP has already tried that @haifengjiang
Docker Desktop for Mac(Intel Chip)
Docker Desktop for Mac(Apple Chip)
Docker Desktop for Windows
Docker Desktop for Linux