DEV Community

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

Posted on

1

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

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay