Solutions to docker pull error reporting

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 x509: certificate is valid for,, not



The solution is as follows:

Step 1: find the available IP through dig @

[root@archlinux ~]# dig @ 
;; ANSWER SECTION:   30      IN      A   30      IN      A



Step 2: try to modify/etc/hosts to force the domain name related to to be resolved to other available IP addresses

vim /etc/hosts

Add an available IP:

Similar Posts: