DEV Community

Cover image for How to Install Docker on Raspberry Pi
0xkoji
0xkoji

Posted on

How to Install Docker on Raspberry Pi

Photo by Praveen Thirumurugan on Unsplash

original post: https://baxin.netlify.app/how-to-install-docker-raspberry-pi/

Install Docker on Raspberry Pi

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
Enter fullscreen mode Exit fullscreen mode

Add user to the docker group

sudo gpasswd -a $USER docker   # Add user to the docker group
newgrp docker                 # Refresh the group membership
Enter fullscreen mode Exit fullscreen mode

Verify Docker Installation

This command checks that Docker has been successfully installed on your Raspberry Pi.

docker --version

Docker version 27.4.1, build b9d17ea
Enter fullscreen mode Exit fullscreen mode

Hello World

This command runs a test container to verify Docker is working properly.

docker container run --rm hello-world
Enter fullscreen mode Exit fullscreen mode

Top comments (0)