A no fuss Docker install on Rapberry Pi 2

During CloudFleet development, we had some problems in finding a consistent way to install Docker in Debian Jessie on ARM (Raspberry Pi 2). Debian moved us around between mirrors a bit and then eventually settled on Docker 1.7.1 which doesn’t work on ARM (Socket operation on non-socket). Luckily, we found a nice Docker .deb package that works on ARM thanks to the Hypriot community (check the link for the latest Docker version). To use it, simply do:

wget http://downloads.hypriot.com/docker-hypriot_1.8.2-1_armhf.deb
dpkg -i docker-hypriot_1.8.2-1_armhf.deb

Or if you use Ansible, use this snippet:

- name: install_docker | download and install the Hypriot .deb package
  shell: URL='http://downloads.hypriot.com/docker-hypriot_1.8.2-1_armhf.deb'; FILE=`mktemp`; wget "$URL" -qO $FILE && dpkg -i $FILE; rm $FILE
  args:
    chdir: /tmp
    executable: /bin/bash
  tags:
    - blimp
    - install
    - install_docker
    - packages

For a more sophisticated Ansible script that works cross-architecture in Debian, check out our full install_docker task on GitHub.

That should be it. Enjoy Docker on ARM and be sure to check CloudFleet out if you’re interested in having your own cloud on your own device!

Published by

metakermit

Building apps, analysing data at Punk Rock Dev and sharing weird & cool photographs, drawings, music, films, games… More about me here. You can get new blog posts via RSS or follow @metakermit on Twitter where I also announce new stuff.

One thought on “A no fuss Docker install on Rapberry Pi 2”

  1. I found docker would not start when i installed the deb so i looked and had issues with firmware.

    simple “sudo rpi-update” and a reboot and it was fixed.

    Brilliant post!

Leave a Reply

Your email address will not be published. Required fields are marked *