Installing Docker on Raspberry Pi

docker edit

To install Docker on Raspberry PI, run the following commands:

sudo apt-get install apt-transport-https ca-certificates software-properties-common -y

curl -fsSL -o && sh

sudo usermod -aG docker pi

sudo curl

Then edit sources.list

sudo nano /etc/apt/sources.list

and add the following line at the end:

deb buster stable

Make sure to replace your version name (buster above) with the correct one.

Patch and update OS:

sudo apt-get update
sudo apt-get upgrade -y

and start Docker service:

sudo systemctl start docker.service

Reboot pi and when it comes back online, run the line below to test the installation:

docker info

It should print diagnostic information about Docker.