0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

How to fix - Docker : https://registry-1.docker.io/v2/ timeout error

Last updated at Posted at 2025-02-06

Summary

How to Fix the timeout error below. Issue happened when rebuild docker project by docker-compose up -d --build .

#Error Messages
docker wsl2 ubuntu Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection

Reason

Since the info. of nameserver(IP Address) has changed due to router renewal,etc on ubuntu wsl2,Docker can not access to the internet then got this timeout issues.

Solution

  1. Find correct Gateway IP Address on windows PC by ipconfig.
  2. open ubunt wsl2 cli then change to new one by vi /etc/reolv.conf.
# nameserver below needs to change to new Default Gateway IP
nameserver 8.8.8.8
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?