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

Could not resolve host: get.docker.com #14

Open
nickdos opened this issue May 31, 2018 · 8 comments
Open

Could not resolve host: get.docker.com #14

nickdos opened this issue May 31, 2018 · 8 comments

Comments

@nickdos
Copy link

nickdos commented May 31, 2018

Script failed at

Installing Docker...
curl: (6) Could not resolve host: get.docker.com

Edit: Using 2018-04-18-raspbian-stretch-lite on a RPi 3B+ booting in headless mode connecting via wifi (using the wpa_supplicant.conf file method).

@nickdos
Copy link
Author

nickdos commented May 31, 2018

RPi not responding to SSH, so might be PSU issue or network.

@nickdos nickdos closed this as completed May 31, 2018
@dale3h
Copy link
Owner

dale3h commented May 31, 2018

This does sound like a network related issue that is not caused by the script itself.

@nickdos
Copy link
Author

nickdos commented May 31, 2018

I was able to reach that site with my Mac, so not a firewall issue. RPi won't boot now, so starting from scratch again. Everything was fine up to that line, so I'm thinking my PSU might've been marginal in terms of supplying enough current and I was using Wifi. Will try with Ethernet next as well.

@nickdos
Copy link
Author

nickdos commented Jun 1, 2018

I'm still getting the same issue - different PSU (but still on wifi) and failed at the same spot.

I'm using CloudFlare DNS (1.1.1.1), so not sure if that is an issue but I can resolve the host on other machines, so maybe Stretch lite is doing something strange with DNS?

Edit: re-imaged SD card and before running script tested DNS/network:

pi@raspberrypi:~ $ ping get.docker.com
PING d3vuzgspmaykda.cloudfront.net (54.230.135.146) 56(84) bytes of data.
64 bytes from server-54-230-135-146.syd1.r.cloudfront.net (54.230.135.146): icmp_seq=1 ttl=242 time=30.6 ms
64 bytes from server-54-230-135-146.syd1.r.cloudfront.net (54.230.135.146): icmp_seq=2 ttl=242 time=31.0 ms

Edit-2: Re-ran on ethernet and script ran to completion. I'm guessing that wifi is the issue and that the docker container cannot access network via the host OS.

@nickdos nickdos reopened this Jun 1, 2018
@ontl
Copy link

ontl commented Jun 5, 2018

Same. Could not resolve host : get.docker.com when using WiFi.

Reflashed, connected to ethernet (after only enabling SSH, not WiFi), and it worked.

@bubez81
Copy link

bubez81 commented Oct 15, 2018

Sadly i can’t use ehternet...any workaround?

curtisgibby added a commit to curtisgibby/hassio-installer that referenced this issue Mar 24, 2019
@curtisgibby
Copy link

Added a PR to document this issue in the README.

@pvsunilkumar
Copy link

pvsunilkumar commented Sep 25, 2023

Same issue for me while installing docker as rootless (curl: (6) Could not resolve host: get.docker.com). For me "ping get.docker.com" is giving reply. I am running windows 11 but i am not able to install OpenSSH through App->Optional features. Any other workarounds?

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

6 participants