Docker & Containers¶
Pimarchy can set up Docker CE and Docker Compose v2 via the dev module — it is no longer part of the default install (memory efficiency first):
Installation Process¶
Pimarchy uses the official Docker repository from download.docker.com.
- Not Debian's docker.io: The Debian docker.io package is often outdated and doesn't include the official docker-compose-plugin.
- Idempotent: If Docker is already installed, the script will skip the installation but ensure the repositories and keys are correctly configured.
Managing Containers¶
You can manage your Docker containers with standard commands:
# Check Docker version
docker --version
# Check Docker Compose version
docker compose version
# List running containers
docker ps
Running as a User¶
Docker group membership is opt-in — Pimarchy does not add your user to the docker group automatically (the group is root-equivalent, so it should be a deliberate choice):
Group Update
If you find that you still need to use sudo, you can refresh your user group status:
Common Use Cases¶
Web Dashboard¶
Deploy a web dashboard for your Pi:
Development Environments¶
Spin up a local development environment:
# Example Docker Compose file
version: "3.8"
services:
db:
image: mariadb:latest
environment:
MARIADB_ROOT_PASSWORD: password
ports:
- "3306:3306"
Storage & Performance¶
- NVMe Storage: If you are running Docker on a Pi 5, we highly recommend an NVMe or High Speed USB SSD for the best performance.
- MicroSD wear: Frequent writes to a MicroSD card (common with Docker) can lead to premature card failure.