Today, when using docker, the image file is always reported as an error from the warehouse to the local. After trying, it is finally solved
The error message is as follows:
[docker@web-test ~]$ docker pull nginx Using default tag: latest latest: Pulling from library/nginx f5d23c7fed46: Already exists 918b255d86e5: Downloading 8c0120a6f561: Download complete Get https://registry-1.docker.io/v2/: x509: certificate is valid for goldopen.org, www.goldopen.org, not registry-1.docker.io
The solution is as follows:
Step 1: find the available IP through dig @114.114.114.114 registry-1.docker.io
[root@archlinux ~]# dig @114.114.114.114 registry-1.docker.io . . . ;; ANSWER SECTION: registry-1.docker.io. 30 IN A 34.199.77.19 registry-1.docker.io. 30 IN A 34.206.236.31 . .
Step 2: try to modify/etc/hosts to force the domain name related to docker.io to be resolved to other available IP addresses
vim /etc/hosts
Add an available IP:
34.199.77.19 registry-1.docker.io
Similar Posts:
- [Solved] Error in docker pull down image“ https://registry-1.docker.io/v2/ : Net / http: TLS handle timeout “how to handle?
- Docker ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [How to Solve]
- How to Solve docker /docker-entrypoint.sh Error
- docker unauthorized: incorrect username or password
- “Docker build” requires exactly 1 argument [How to Solve]
- Solution to the cache problem of JVM DNS
- Xcode Package Archive Error: Command /usr/bin/codesign failed
- [How to Solve] SSL handshake failed: SSL error
- [Solved] docker nginx localhost connection refused connect() failed (111: Connection refused)while connecting to upstream