Tag Archives: Docker pull Command Error

Docker pull Command Error response from daemon: Head https://registry-1.docker.io/v2/library/

Exception information:

Error response from daemon: Head https://registry-1.docker.io/v2/library/redis/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fredis%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

There are two main ways to solve this problem

Method 1:
Parsing IP is not available. You can use dig @ 114.114.114.114 registry-1.docker.io to find the following information

;; ANSWER SECTION:
registry-1.docker.io.   forty       IN       A       3.209.182.229
Fill in the information in answer section and etc/hosts file

Method 2:
DNS resolution error
in/etc/resolv. Conf
Add Google’s DNS domain name resolution address:
nameserver 8.8.4.4
nameserver localdomain
restart the docker command after saving: