Install

Docker and Docker Compose

How to install Docker and Docker Compose in diferent distributions

Debian Based

Update System:

sudo apt update && sudo apt upgrade

Raspberry

Install the kernel headers for the operating system. This is important, because if you don't install the kernel headers, Docker won't work. To install the kernel headers, simply run the following command:

sudo apt install raspberrypi-kernel raspberrypi-kernel-headers

Install Docker

curl -sSL https://get.docker.com | sh

Add user permission:

sudo usermod -aG docker $USER
OR
sudo usermod -aG docker pi

Apply Updates:

sudo reboot

After Reboot:

docker version

Last updated