10/03/2025

3 Steps to install Docker on Raspberry Pi 5

By snorlaxprime

Recently I purchased Raspberry Pi 5 as to update my old trusted Pi4. So one of the important application is Docker. Docker is a tool that allows you to deploy application inside a software containers. This is good especially for Raspberry Pi because you can easily package the application and deploy that in many places.

So let’s get started

Step 1. Instal using the shell script

Terminal service to your Raspberry Pi and then execute the following command

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

Once the script is complete, you should see something similar to the following:

Step 2. Add your user to the docker group

sudo usermod -aG docker $USER

This is to make sure you can run docker without root privileges. Now you an log out and log back in so that your membership is re-evaluated or you can also run the following command

newgrp docker

Step 3. New you can test the docker

Use the following command to download a test image and runs it in a container.

docker run hello-world

If all goes well, you should see the following message

Congratulations, now you have a working docker installed on your Raspberry Pi 5. You can check out what other things you can run inside the docker in my other post. Things like Home assistant, Grafana, MQQT, Node-Red.