when you try to pull from docker hub or docker login you will face this error.if you are behind company proxy this will be happen.here is the step for solve this error
Unable to download Docker images behind a proxy
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
1 create systemd entry for docker service
mkdir /etc/systemd/system/docker.service.d

2.Create config file for http
nano /etc/systemd/system/docker.service.d/http-proxy.conf and add these lines to it
[Service]
Environment=”HTTP_PROXY=http://YOURPROXY IP ADDRESS HERE.com:PROXY PORT”

3.Create config file to https also
nano /etc/systemd/system/docker.service.d/https-proxy.conf and add these lines to it
[Service]
Environment=”HTTPS_PROXY=http://YOURPROXY IP ADDRESS HERE.com:PROXY PORT”

4.Reload the demon

5.Restart docker service
sudo systemctl restart docker

Now docker image pull is working

https://thuockeodaithoigianquanhe.webflow.io/
August 18, 2019Hello, I check your blog on a regular basis. Your humoristic style is awesome, keep it
up!
https://sites.google.com/site/khoahoctaichinhdoanhnghiep/
November 6, 2019Thanks, i sloved my error.
Ayushi
May 4, 2021Still not working
Unable to find image ‘hello-world:latest’ locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See ‘docker run –help’.
I have given IP of my VM. Still did not solve the problem. Please help. Thanks in advance.
yu
September 15, 2021Hello,
I couldn’t resolve this ploblem.
I had tried these coordings reference to this page, but,
“Error response from daemon:Get https://registry-1.docker.io/v2: proxyconnect
tcp: dial tcp ××× : ×××: connect: connection refused.
See ‘docker run –help’.”
Could you tell me the resolution anyone?
Environment:Linux(CentOS8)
I use my server of Linux in the company Internet.