Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection refused trying to connect to registry-1.docker.io #209

Closed
mattstauffer opened this issue Jan 21, 2021 · 15 comments
Closed

Connection refused trying to connect to registry-1.docker.io #209

mattstauffer opened this issue Jan 21, 2021 · 15 comments

Comments

@mattstauffer
Copy link
Member

I know I'm a Takeout maintainer so I don't have to make this public, but I figure I'm not the only person who'll ever see this error, so I'll put it here publicly while I try to figure it out.

image

 ERR  Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.64.1:53: read udp 192.168.64.2:36267->192.168.64.1:53: read: connection refused

This is on an m1 laptop using the brand new Docker for desktop build, so first thing I'm going to do is install a Docker container the classic way not using takeout and I bet I'll have the same issue there. :)

@mattstauffer
Copy link
Member Author

Yuuuuup.

image

Not a takeout issue, but when I find the solution I'll put it here anyway. :)

@mattstauffer
Copy link
Member Author

These folks said restarting Docker fixed it, but sadly that didn't work:

https://forums.docker.com/t/error-response-from-daemon-get-https-registry-1-docker-io-v2/23741/26

Gonna try restarting my computer next just for fun. :)

@mattstauffer
Copy link
Member Author

Restarting did not fix it. :/

@dennisvandalen
Copy link

@mattstauffer try stopping the dnsmasq service

@mattstauffer
Copy link
Member Author

@dennisvandalen Thanks! Sadly that didn't work. Interestingly my dnsmasq services was in an error status, but stopping it didn't fix the problem.

@mattstauffer
Copy link
Member Author

Thought it might be DNS related so I tried this, but no luck:

image

@jasonvarga
Copy link

I'm running into it, also running an M1. Here's the docker issue: docker/for-mac#5186

At least for me, the workaround is this, in this order:

  • stop dnsmasq
  • restart docker for mac
  • takeout enable whatever should run fine

After you've enabled the container, you can turn dnsmasq back on.
Running takeout start/stop seems to be fine without needing to disable dnsmasq once you've enabled the container.

@mattstauffer
Copy link
Member Author

@jasonvarga Thank you! I tried stopping DNSMasq and it didn't work, but I'm gonna stop it and restart the machine shortly and test that out. Thank you for the link, too!

@hcancelik
Copy link

@jasonvarga Thank you! I tried stopping DNSMasq and it didn't work, but I'm gonna stop it and restart the machine shortly and test that out. Thank you for the link, too!

You just need to restart the docker after stopping dnsmasq. Also, double check that it's indeed stopped instead of failed.

@mattstauffer
Copy link
Member Author

@hcancelik You're right! I had tried to restart it in the preferences, using "apply and restart" on some changes I was making, but that apparently didn't cut it; I actually had to click on the dropdown and click Restart, and then that fixed it.

Thanks!

image

@mattstauffer
Copy link
Member Author

Thanks again @jasonvarga!

For anyone else who runs into this, this is a Docker for Mac + DNSMasq (likely installed by Laravel Valet) thing, not a Takeout thing.

docker/for-mac#5186

@zatorck
Copy link

zatorck commented Jan 26, 2021

It's also worth to say that it's not only issue caused by dnsmasq. Also when You restart container with dnsmaqs turned on Docker cannot read date properly and set dates as 1970 in its containers.

@dangoriya
Copy link

user$ docker run hello-world
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp 54.236.113.205:443: connect: connection refused.
user$ curl https://registry-1.docker.io/v2/
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

what might be the issue ?

@nerazzurri0302
Copy link

reboot turns ok.

@kehindeoderinde
Copy link

Yuuuuup.

image

Not a takeout issue, but when I find the solution I'll put it here anyway. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants