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
You can also check your Raspbian OS version by running the following command in the Raspberry Pi terminal:
cat /etc/os-release
Steps
- Install Docker
curl -sSl https://get.docker.com | sh
- Install dependencies
sudo apt-get install -y python python-pip
sudo apt-get install libffi-dev libssl-dev
- Add permissions for Pi User to run Docker Commands
sudo usermod -aG docker $USER
- Install Docker Compose
sudo pip isntall docker-compose
- Test Docker installation
docker run hello-world
Note: you might need to restart your Raspverry Pi to use docker without sudo permissions.
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.