Docker 1.12.1 Final Release got announced last Friday. This update release holds solid number of bug fixes and feature improvements targeted to make Swarm Mode orchestration more stable and consistent. There has been critical bug fixes around node management, service discovery, ingress load-balancing and much more. But the BIG news comes for “Raspberry Pi” enthusiasts. With 1.12.1, a FIRST ARM debian package has been officially made available.In case you are wondering what it actually means? – If you have Raspberry Pi box and microSD card loaded with Raspbian OS inserted into Pi box, all you need is to power-on your Pi box and run curl -sSL https://get.docker.com/ | sh to get the latest Docker 1.12.1 running on your Raspbian/Jessie Linux OS.
If you still don’t believe me, here is a 5 minute guide for getting Docker 1.12.1 running on your Raspberry Pi 3.I assume you have the following minimal list of hardware & software ready with you.
- Raspberry Pi 3 ( You can order it from Amazon in case you are in India for $35)
- Micro-SD card reader ( I got it from here )
- Any Windows or Linux Desktop or Laptop
- HDMI cable ( I used the HDMI cable of my plasma TV)
- Internet Connectivity(Wifi/Broadband/Tethering using Mobile) – to download Docker 1.12.1 package
- Keyboard & mouse connected to Pi’s USB ports
- SD-Formatter – to format microSD card
- Win32 disk imager(in case you have Windows OS running on your laptop) – to burn Raspbian Jessie ISO into microSD card
- Format the microSD card using SD Formatter as shown below:
2. Download Raspbian Jessie OS from here and use Win32 imager(in case you are on Windows OS running on your laptop) to burn it on microSD card.
3. Insert the microSD card into your Pi box. Now connect the HDMI cable from one end of Pi’s HDMI slot to your TV or display unit and mobile charger(recommended 5.1V@1.5A) as shown:
Wow ! the Raspbian OS is up and running. By default, the username is pi and password is raspberry. I installed vncserver and could connect to Raspberry Pi’s while sitting on my sofa 🙂
Now it’s time to just run the one line command:
$curl -sSL https://get.docker.com/ | sh
Start the docker service through the below command:
pi@raspberry6:~ $ sudo systemctl start docker.service
Warning: Unit file of docker.service changed on disk, ‘systemctl daemon-reload’ recommended.
Yipee ! You just got Docker 1.12.1 running on your amazing Pi box.
It just took 2 minutes for getting Docker 1.12.1 ready right from connecting the power supply and booting up my own Raspberry Pi 3 box. I was able to pull dozens of ARM based images from Dockerhub and it just works flawlessly. Amazed ! Impressed !
As I ordered for 2x Raspberry Pi , I want to try out Swarm Mode quickly.
Let’s try the Swarm Mode:
It was too easy to connect the worker node to the manager over the WLAN and the cluster is ready:
As I have just two Pi boxes, I couldn’t go further to test the Swarm Mode, though I am excited to run applications on this Swarm Mode cluster. I am planning to order for 2 more Pi’s soon so that I can test drive applications.
Meanwhile, I would suggest to refer the below links in case you are interested to see what’s happening in Docker space on Pi box. Alex Ellis, a Docker Captain, has contributed number of awesome blogs, seminars and talks around “Running Docker on Raspberry Pi”. Check it out: