Docker registry error response from daemon i/o timeout
Asked Answered
D

6

10

Error response from daemon: Get https://registry.xxx.com:5000/v1/users/: dial tcp: lookup registry.xxx.com on 192.168.65.1:53: read udp 192.168.65.2:42307->192.168.65.1:53: i/o timeout

I have set up a private docker registry running on an Ubuntu server, but keep getting the error above when I do "docker login https://registry.xxx.com:5000".

When I run "curl -v https://registry.xxx.com:5000" from my mobile phone's network I can resolve the host and am able to login to the registry succesfully. But I cannot do this and get a "cannot resolve host" error when running "curl -v https://registry.xxx.com:5000 from the same network the registry is on".

It seems that it can't resolve the domain. I have a draytek router.

Any ideas?

Dread answered 3/5, 2017 at 5:51 Comment(0)
I
11

Even though this problem was solved by a router change, I'm hit by the "read udp ... timeout" problem every other day. The bug is discussed in docker forums and is apparently related to a DNS lookup. I've found a work-around by doing a docker-machine restart.

Irresolute answered 17/10, 2018 at 18:1 Comment(0)
S
3

Go to: Docker App -> Settings -> Resource -> Network -> DNS Server and set IP again.

I encounter this problem while I am at the company. no problem when at home.

I think it is the problem of the firewall in the company

Sequential answered 30/12, 2020 at 8:43 Comment(1)
Idk why but I had a different value in "Docker subnet". I simply reset this to default value which is in my case "192.168.65.0/28" and it seems to work now.Unthinkable
B
1

I've solved the issue by login with my docker id.

By default, my docker logged out. I go unnoticed. After logging into Docker, everything is running smoothly.

Bornu answered 16/5, 2023 at 5:56 Comment(0)
D
0

Problem solved I had the registry.domain.com DNS-forwarded in the Draytek router, oops ;)

Dread answered 3/5, 2017 at 11:25 Comment(0)
T
0

I've solved the exact same issue by force-ending the VBoxHeadless.exe process in the task manager.

Thorbert answered 7/5, 2017 at 18:18 Comment(0)
U
0

I have solved the same issue by resetting the router dns cache, I suggest to try it.

Unanswerable answered 3/8, 2021 at 5:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.