Thursday, 22 October 2015

Docker 1.8.2 on Raspberry Pi 2


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 CloudFleetout if you’re interested in having your own cloud on your own device!

If Docker does not start run "sudo rpi-update" reboot and then it will work

No comments:

Post a Comment

Amazon

Donate

Donate Towards More Raspberry PI's for Projects