← Notes

March 8, 2021

Install Docker on Raspberry Pi

Easily install Docker on your Raspberry Pi.


Simply run:

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

If you'd like to run docker without sudo you can type:

sudo usermod -aG docker pi

However this might expose you to a security issue called privilege escalation. Read this for more.

To install Docker Compose:

sudo apt-get install -y libffi-dev libssl-dev python3-dev python3 python3-pip
python3 -m pip install docker-compose