hassio-installer icon indicating copy to clipboard operation
hassio-installer copied to clipboard

Could not resolve host: get.docker.com

Open nickdos opened this issue 6 years ago • 8 comments

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 avatar May 31 '18 11:05 nickdos

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

nickdos avatar May 31 '18 11:05 nickdos

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

dale3h avatar May 31 '18 16:05 dale3h

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 avatar May 31 '18 23:05 nickdos

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 avatar Jun 01 '18 07:06 nickdos

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

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

ontl avatar Jun 05 '18 03:06 ontl

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

bubez81 avatar Oct 15 '18 16:10 bubez81

Added a PR to document this issue in the README.

curtisgibby avatar Mar 24 '19 14:03 curtisgibby