Docker on Raspberry pi

How to put Docker on a Raspberry pi? The easyest way is to install a distribution that already has it installed, like Hypriot. But the official way to install docker on Raspbian is (no sudo needed):

$ curl -sSL https://get.docker.com | sh

On the time this article has been written the version installed by this command is 17.12.0-ce.

If you want to run the docker command from the pi user, you can issue the command:

$ sudo usermod -aG docker pi

The result of this command will be available the next time you open a new session with the user pi.

To test the installation we will run the stealthizer/rpi-whalesay image, prepared to run in this architecture:

Captura de pantalla 2018-01-09 a las 14.39.41

And That’s all for now. This was a very basic entry, I know. But some weeks ago there was a problem in the last docker version for raspberry and some additional steps where required for docker to work…

Leave a comment