I am attempting to install Docker on a raspberry pi 3 cluster using the following instructions:


On the manager node (0), wlan0 is configured to connect over the local LAN, and I can get out to the interwebs.

eth0 has a static IP on a small private network for the Pis.

This is raspbian jessie (w/ gui) and has been updated.

When I attempt to launch:

for host in node0 node1 node2; do ssh admin@$host curl -sSL https://get.docker.com | sh; done

I get a "No route to host 443" error. Please advise, have I misconfigured my iptables ruleset or interfaces?

# Generated by iptables-save v1.4.21 on Thu Dec  7 22:38:55 2017
:INPUT DROP [1457:118220]
:OUTPUT ACCEPT [1299:171452]
-A INPUT -i lo -j ACCEPT
-A INPUT -i wlan0 -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -i wlan0 -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -i wlan0 -p tcp -m tcp --dport 22 -s -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -s -j ACCEPT
# Completed on Thu Dec  7 22:38:55 2017

/etc/network/interfaces  contains:
auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static

allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

When you run this command, it doesn't run the Docker installer script on $host. It runs it on your current host:

ssh admin@$host curl -sSL https://get.docker.com | sh

To execute the script on the remote host, you need to write like this:

ssh admin@$host 'curl -sSL https://get.docker.com | sh'

That is, make the pipe | part of the remote command. Otherwise the | sh will be executed locally, using the output of the remote command.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.