Install Docker and Docker Compose On Raspberry Pi

If you need help installing Docker on your Raspberry Pi, be sure you pick the guide wisely. Some guides online won’t work on Raspberry Pi. The following steps had been tested on Raspberry Pi 4.

1. Install Docker

docker

1
2
3
4
5
6
7
8
9
10
11
12
# Install required packages
sudo apt update
sudo apt install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common

# Get recommened installation script from docker.
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
1
2
3
# verify you have docker installed
docker -v
# Docker version 20.10.4, build d3cb89e

2. Add current user to docker group.

This allow you to manage Docker as a non-root user.

1
2
sudo usermod -aG docker $USER
newgrp docker

3. Install Docker Compose

docker-compose

1
2
3
# Install Docker Compose from pip (Python3)
sudo apt install -y python3-pip libffi-dev
sudo pip3 install docker-compose
1
2
3
# verify you have docker-compose installed
docker-compose -v
# docker-compose version 1.28.5, build unknown
Install Isso server free with GCP Connect to existing AWS AppSync API from a React Application

Comments