I am extremely frustrated with Docker Hub at the moment and have done everything to try to login to Docker from my Windows Home PC. This worked 100% a few weeks ago, but all of a sudden get the error the following error message:
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)
Here is my problem and actions I tried:
I use Windows 10 Home, with WSL2 Enabled and Docker for Windows installed.
I am NOT behind a proxy, so the internet is open from my home PC
I can build and run Docker containers locally
I can view Remote Repositories on Docker for Windows
I disabled my Windows Defender and local windows firewall, but get the same issue.
I created a new Docker account with no repositories, but get the same issue
I updated the password to make sure its not the wrong password
As explained in the top sentence, this worked 100% for me only a few weeks ago.
Anyone, please help if you had the same problem and have a fix for me.
Could you solve this? I experience the same problems since yesterday. I’m running Linux, no Proxy, no VPN. Cannot ping docker.io. Switching DNS in /etc/resolv.conf did not solve the problem either.
(create a copy of config.json if you have special configuration) docker logout #delete config.json file docker login --username your-DockerID-not-your-email
password: **that’s it**
It should create the config.json again.
I know it sound stupid but believe me I know your pain.
Just in case you’re getting that message while trying to login from a script take a look at this issue I opened a couple of hours ago
Try connecting using a different device, if possible with a general public dns like 8.8.8.8
This should tell you if the problem is from your computer, your dns, or the server
@thesolutionarchitect@fpmaon I’m sorry I forgot how docker runs on windows, try this: Start Docker Desktop that’s the problem
try login when it’s ready (just in case try logout first)
Good luck
Most of the time the problem is a silly mistake. When complexity begins to grow, it is natural that these problems drive us crazy. Especially when you jump from one project to another.
I’m glad to see you solved your problem
My Docker Desktop works fine and I can even login within the Desktop app to Docker Hub. However, I cannot login using Powershell or in Visual Studio Code’s terminal, which also uses Powershell.
Thanks so much. The access token worked. All I had to do is logout of the Docker for Windows App, enter my Docker ID and the access token as the password and it worked.
The access token worked. All I had to do is logout of the Docker for Windows App, enter my Docker ID and the access token as the password and it worked.
Error response from daemon: Get “https://registry-1.docker.i/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaitng headers)
i have this error and then i have resole through nameserver 8.8.8.8 vi /etc/resolv.conf