These are early days for me, but I’ve managed to get Docker up and running on my Raspberry Pi 3 (quad core 1GHz ARMv7 (v7l), 1GB DRAM). I’m running Arch Linux. Here’s what ‘cat /proc/version’ shows:
Linux version 4.1.21-1-ARCH (builduser@leming) (gcc version 5.3.0 (GCC) ) #1 SMP Wed Apr 6 19:29:49 MDT 2016
In order to get Docker installed I ran ‘sudo pacman -S docker’ followed by ‘sudo systemctl enable docker’ followed by ‘sudo systemctl start docker’.
I have yet to learn how to create a container, but I have found at least one to download and run within my Raspberry Pi. I executed ‘sudo docker run -d -p 80:80 hypriot/rpi-busybox-httpd’. This starts a little httpd server which can be reached by any local web browser (i.e. inside the home network). For example, using Vivaldi:
You can read more about this particular container here: Getting started with Docker on your Raspberry Pi
Once up and running, there are some simple CLI commands to monitor and control what’s running:
- ‘sudo docker ps’ returns a list of all running containers. The first entry in each line of the listing is the container ID, and it’s used to control it with other commands. If you want to see all containers, running or otherwise, execute ‘sudo docker ps -l’ (lower case L)
- ‘sudo docker stop [containerID]’ stops a container.
- ‘sudo docker start [containerID]’ starts a container. For stop and start remember to use ‘ps -l’ to get the container ID whether it’s running or not.
There is more to come, but for now this is a decent start. Software is installed and from what I can determine by examination the Raspberry Pi 3 is doing a decent job running Docker and at least one container. Not bad for a $35 computer.