This has been tested on a Raspberry Pi 4 Model B Rev 1.1 using Raspbian Buster.

You can check your Raspberry Pi model by running the following command in the Raspberry Pi terminal:

cat /proc/cpuinfo

pi4-cat

You can also check your Raspbian OS version by running the following command in the Raspberry Pi terminal:

cat /etc/os-release

pi4-os-release

Steps

  1. Install Docker
curl -sSl https://get.docker.com | sh
  1. Install dependencies
sudo apt-get install -y python python-pip

sudo apt-get install libffi-dev libssl-dev
  1. Add permissions for Pi User to run Docker Commands
sudo usermod -aG docker $USER
  1. Install Docker Compose
sudo pip isntall docker-compose
  1. Test Docker installation
docker run hello-world

Note: you might need to restart your Raspverry Pi to use docker without sudo permissions.

pi4-docker-hw

If the installation was completed successfully, you will get the “Hello from Docker!” message. You can then check out Docker Hub for arm based images to run on your Raspberry Pi.