Live Deep Dive - Docker Swarm Mode on the Pi

I've been putting Docker to work on the Raspberry Pi since I first heard about it in mid-2015. Two of the most rewarding things I've done this year are: writing a tutorial on Docker Swarm for Linux User Magazine and building an IoT sensor network for Dockercon '16 using the 5USD Pi Zero.

With the release of Docker 1.12 GA and Swarm Mode it made sense to start building out a Raspberry Pi cluster to explore the new features. Over several weeks I tested out Docker 1.12 with a mix of Raspberry Pi 2/3s (ARMv7) and Pi Zeros (ARMv6). I looked at things like OTG networking, building Docker from source on the Pi as a dynamic and static binary and various Linux distributions.

A lot of that effort was simplified when a Debian package was made available officially by the Docker team through the curl -sSL get.docker.com | sh installation method.

Are you new to Docker?

If you're new to Docker please follow my guide to Getting Started with Docker and Raspberry Pi which covers how to build your first images and even use GPIO for Physical Hardware from Docker!

Live Deep Dive

This live video covers:

  • Creating a Swarm with 7x Raspberry Pi 2s
  • Running through a ping service
  • Testing a hello-world web-service and a GUID generating micro-service
  • Testing multi-host communication with a redis-based hit counter scaled across all the hosts
  • A look at the Swarm Visualizer from Dockercon re-built on ARM

For the full suite of test scenarios fork my alexellis/swarmmode-tests repo on on Github.

Feedback & questions

It would be great to hear from you. Please get in touch with your questions about the cluster, video, Raspberry Pi or just Docker in general through the comments or via @alexellisuk on Twitter.

See Also:

Alex Ellis

Read more posts by this author.

Subscribe to Alex Ellis' Blog

Subscribe to keep in touch. By providing your email, you agree to receive marketing emails from OpenFaaS Ltd

or subscribe via RSS with your favourite RSS reader

Learn Go with my new eBook

eBook cover

"Everyday Go" is the fast way to learn tools, techniques and patterns from real tools used in production based upon my experience of building and running OpenFaaS at scale.

Buy a copy on Gumroad