Home > other >  Docker pull mysql error Get https://registry-1.docker.io/v2/:.net/HTTP: request ca
Docker pull mysql error Get https://registry-1.docker.io/v2/:.net/HTTP: request ca

Time:10-08

1, the docker accelerator configuration information:
 
{
"Registry - mirrors" : "https://ixoaalsa.mirror.aliyuncs.com", "https://docker.mirrors.ustc.edu.cn"]
}


2, after the completion of the configuration:
 
/root @ localhost ~ # systemctl daemon - reload
/root @ localhost ~ # systemctl restart docker


3, the error details:
 
/root @ localhost ~ # docker pull tomcat
Using the default tag: latest
Trying to pull the repository docker. IO/library/tomcat...
Get https://registry-1.docker.io/v2/:.net/HTTP: request canceled while waiting for the connection (Client) Timeout exceeded while awaiting headers)


4, the host machine and virtual machines can visit hub.docker.com

5, above, under the guidance of the great god, please, how to solve the problem.

CodePudding user response:

Made a 4-5 hours, no response, it seems should not be on this site?

CodePudding user response:

Online, etc., are looking forward to reply

CodePudding user response:

Final solution: * * * *
1, finally found is machine network configuration problems, solution:
 
Vim/etc/resolv. Conf


2, remove the inside of the content, and changed to:
 
# content don't have to clean up, put the two lines in the top row
Nameserver 8.8.8.8
Nameserver 8.8.8.4


3, restart the network service
 
# without restarting
Systemctl restart network

  • Related