Skip to main content
πŸŽ“ Claude Code Masterclass Learn AI-assisted development on Udemy β€” plus the companion book on Leanpub & Amazon. Start Learning
How to Install Docker on Raspberry Pi
DevOps

How to Install Docker on Raspberry Pi

Complete guide to install Docker Engine on Raspberry Pi. Covers Docker CE installation, post-install steps, Docker Compose, and verification.

LB
Luca Berton
Β· 1 min read

Here is how to install Docker on Raspberry Pi in 2026.

Prerequisites

  • Raspberry Pi 3, 4, or 5 with at least 2 GB RAM
  • 64-bit OS recommended (Raspberry Pi OS or Ubuntu Server)

Install

curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
newgrp docker

Verify

docker run hello-world
docker compose version

Performance Tips

Use 64-bit OS for better Docker performance. Increase swap for memory-constrained Pis:

sudo dphys-swapfile swapoff
sudo sed -i 's/CONF_SWAPSIZE=100/CONF_SWAPSIZE=2048/' /etc/dphys-swapfile
sudo dphys-swapfile setup && sudo dphys-swapfile swapon

Free 30-min AI & Cloud consultation

Book Now