Docker pull Command Error response from daemon: Head

Exception information:

Error response from daemon: Head Get 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 @ to find the following information

;; ANSWER SECTION:   forty       IN       A
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 localdomain
restart the docker command after saving:

Read More: