Warmup for Docker swarm on Raspberry Pi

After Matt William's Blog Swarming Raspberry Pi – Part 1 I definitely have to install Docker Swarm onto this little Pi cluster.

My little Hypriot "pirate ships" are powered with a 4 port USB charger from Anker. You only need one power supply. The D-Link 5-port Switch is also powered with a USB to 5.4mm cable.

three docker pis

I have flashed the Hypriot SD image three times and logged into the Pi's.

I played with Bonjour to find my Pi's more easily by installing the avahi daemon on each Pi with

apt-get install -y avahi-daemon
vi /etc/hostname # eg. pi6
vi /etc/hosts  # eg. 127.0.1.1 pi6
/etc/init.d/hostname.sh
reboot

Now each Docker host could be found with piX.local.

More to come the next few days...

Stefan Scherer

Read more posts by this author.