Kurse › Raspberry Pi › Stufe 18
Raspberry Pi · Intermediate · Stufe 18 / 40
Docker on the Pi
Package, run and update applications in containers, including ones that need hardware access.
Intermediate freischalten · CHF 19.90 Stufen 14–26, einmalig, kein Abo
10 Lektionen in dieser Stufe
- Containers Versus Virtual Machines Versus Virtual Environments
Explain what a container isolates and what it shares with the host. · Lab: Compare the process list and filesystem inside and outside a running container. - Installing Docker Engine on Raspberry Pi OS
Install from the vendor repository and run Docker without sudo. · Lab: Install Docker Engine, add your user to the docker group and run a test container. - Running, Stopping and Inspecting Containers
Manage the container lifecycle and read logs and state. · Lab: Run a web server container, read its logs, open a shell inside it and remove it. - Volumes and Bind Mounts for Persistent Data
Keep data when a container is replaced. · Lab: Run a database container, delete it and show the data survives in a named volume. - Ports, Bridge Networks and Container DNS
Publish services and let containers find each other by name. · Lab: Create a network, run two containers and have one call the other by name. - Writing a Dockerfile for a Python App
Build a small, cache-friendly image of your Flask project. · Lab: Write a Dockerfile, build the image and compare its size with a slimmer base. - Multi-Container Stacks with Docker Compose
Describe a whole application in one file and bring it up together. · Lab: Write a Compose file for the app and a reverse proxy with restart policies. - Passing GPIO, I2C and Cameras into Containers
Give a container access to specific devices without full privileges. · Lab: Read the BME280 from inside a container by mapping only the I2C device. - ARM64 Images and Multi-Architecture Builds
Choose images that run on the Pi and build for it from a PC. · Lab: Build an arm64 image on a laptop with buildx and run it on the Pi. - Updating, Pruning and Limiting Containers
Keep stacks current, reclaim space and cap resource use. · Lab: Update the stack to a new image tag, prune old images and set a memory limit.
Abschlussprojekt
Your dashboard, its database volume and a reverse proxy running as a Compose stack that survives reboots and updates with one command.
Teile für diese Stufe
- 1 × Raspberry Pi 5 or Pi 4 (4 GB or more recommended) set from Level 1
- 1 × Sensor node hardware from Level 11
In jeder Lektion legst du die passenden Teile direkt in den Warenkorb. Raspberry Pi →
Voraussetzung: Levels 15 to 17: services, Git and the Flask application.