Podman: containers without a daemon
This course teaches Podman in the same format as the Docker course: a 60-minute lesson per hour, with timed modules, commands that you can verify, a sample project, a cheat sheet, a capstone lab and a final quiz. Podman runs OCI containers without a central daemon, and it can run them as an ordinary user. By the end you can build images, run and debug containers, keep data safe, connect services, run multi-container projects, harden them and run them as systemd services.
The Chinese version has the same hours, modules, labs and quizzes, so you can switch languages at the same point in the course.
Who it is for. Engineers who already use containers, or who need to replace Docker on a Linux server or a developer machine. You should know what an image and a container are.
What you need. A Linux machine (a VM is fine), or Windows or macOS with podman machine. Use a throwaway host, not a production server. Every lab works offline except image pulls, which need access to a public registry. Hour 7 needs a Linux user session with systemd.
Version. The course is written for Podman 5.x. Ubuntu 24.04 ships Podman 4.9.3, which uses slirp4netns where Podman 5 uses pasta for rootless networking. Hour 5 shows how to tell which one you have. Check podman --version before you start.
Sample project. All hours use podman-app/, a small Python service in the course folder. Hour 2 builds it. Later hours run it with volumes, networks, Compose, Kubernetes YAML and Quadlet.
Lesson format. Each hour has modules with time windows. Each module explains the mechanism, gives commands with the expected result and a way to verify it, names the common errors, ends with a production note and a 2-question quiz. After class, each hour has a cheat sheet, a capstone lab and a final quiz.
Not included. Unlike the Docker course, this course has no animations, narration audio or embedded videos yet. Diagrams are text diagrams in code blocks.
Status. Draft. Commands were checked against Podman's documentation. The labs have not yet been run end to end on Podman 5.x, so each lab needs one run on a Linux host before the lessons are approved.
Full outline and time allocation
| Hour | Time | Module | Minutes |
|---|---|---|---|
| 1 Core fundamentals | before class | Module 0: setup | pre-class |
| 1 | 00–08 | m1 Architecture and rootless | 8 |
| 1 | 08–16 | m2 Images and registries | 8 |
| 1 | 16–28 | m3 Run, list, stop and remove | 12 |
| 1 | 28–38 | m4 Logs, exec and inspect | 10 |
| 1 | 38–50 | m5 Docker compatibility and podman machine | 12 |
| 1 | 50–60 | m6 Lab: your first web service | 10 |
| 2 Images and building | 00–08 | m1 Image internals | 8 |
| 2 | 08–20 | m2 Containerfile instructions | 12 |
| 2 | 20–30 | m3 Build cache and .containerignore | 10 |
| 2 | 30–42 | m4 Multi-stage builds and non-root users | 12 |
| 2 | 42–52 | m5 Registries: login, tag and push | 10 |
| 2 | 52–60 | m6 Save, load and clean up | 8 |
| 3 Running containers well | 00–10 | m1 Environment and configuration | 10 |
| 3 | 10–20 | m2 Resource limits | 10 |
| 3 | 20–28 | m3 Restart policies | 8 |
| 3 | 28–40 | m4 Health checks | 12 |
| 3 | 40–52 | m5 Stop, signals and exit codes | 12 |
| 3 | 52–60 | m6 Diagnose a crash loop | 8 |
| 4 Storage | 00–08 | m1 Writable layer, volumes and bind mounts | 8 |
| 4 | 08–18 | m2 Named volumes | 10 |
| 4 | 18–28 | m3 Bind mounts and SELinux labels | 10 |
| 4 | 28–40 | m4 Rootless ownership: keep-id and unshare | 12 |
| 4 | 40–52 | m5 Backup and restore | 12 |
| 4 | 52–60 | m6 Production data rules | 8 |
| 5 Networking and pods | 00–10 | m1 Network modes and rootless networking | 10 |
| 5 | 10–20 | m2 User-defined networks and DNS | 10 |
| 5 | 20–32 | m3 Publishing ports | 12 |
| 5 | 32–44 | m4 Pods | 12 |
| 5 | 44–54 | m5 Connectivity troubleshooting | 10 |
| 5 | 54–60 | m6 Production network layout | 6 |
| 6 Compose and Kubernetes YAML | 00–10 | m1 podman compose | 10 |
| 6 | 10–22 | m2 A multi-service project | 12 |
| 6 | 22–32 | m3 Generate Kubernetes YAML | 10 |
| 6 | 32–44 | m4 Play and tear down Kubernetes YAML | 12 |
| 6 | 44–52 | m5 Choose Compose, kube play or Quadlet | 8 |
| 6 | 52–60 | m6 Migration checklist | 8 |
| 7 Security and services | 00–10 | m1 Rootless internals: subuid and uid_map | 10 |
| 7 | 10–22 | m2 Least privilege at run time | 12 |
| 7 | 22–30 | m3 Secrets | 8 |
| 7 | 30–40 | m4 Image trust and digest pinning | 10 |
| 7 | 40–52 | m5 Quadlet: containers as systemd services | 12 |
| 7 | 52–60 | m6 Auto-update, rollback and reboot test | 8 |
| 8 (optional) Troubleshooting and interviews | 00–10 | m1 Error catalogue | 10 |
| 8 | 10–20 | m2 Diagnostic toolkit | 10 |
| 8 | 20–30 | m3 Walk through two failures | 10 |
| 8 | 30–44 | m4 Fifty production problems | 14 |
| 8 | 44–60 | m5 Fifty interview questions | 16 |
Knowledge coverage matrix
Each row is a skill, the module that teaches it, the main command, and the lab that proves it works. Use it to check for gaps.
| Skill | Module | Main command | Lab |
|---|---|---|---|
| Daemonless and rootless model | H1 m1 | podman info | H1 m6 |
| Pull and name images | H1 m2, H2 m1 | podman pull, podman images --digests | H1 m6 |
| Run, list, stop and remove containers | H1 m3 | podman run, podman ps -a, podman rm | H1 m6 |
| Logs, exec and inspect | H1 m4 | podman logs, podman exec, podman inspect | H1 m6 |
| Docker compatibility | H1 m5 | alias docker=podman, podman system service | H1 m5 |
| Build from a Containerfile | H2 m2, m3 | podman build | H2 capstone |
| Multi-stage and non-root images | H2 m4 | podman build, USER | H2 m4 |
| Push and pull through a registry | H2 m5 | podman login, podman push | H2 capstone |
| Save, load and reclaim disk | H2 m6 | podman save, podman system df, podman image prune | H2 m6 |
| Environment and configuration | H3 m1 | podman run -e --env-file | H3 m6 |
| Resource limits | H3 m2 | podman run --memory --cpus --pids-limit, podman stats | H3 m2 |
| Restart policies and their limits | H3 m3 | podman run --restart | H3 m3 |
| Health checks | H3 m4 | podman healthcheck run | H3 m4 |
| Signals and exit codes | H3 m5 | podman stop -t, podman kill | H3 m5 |
| Named volumes and bind mounts | H4 m2, m3 | podman volume create, -v, :Z | H4 capstone |
| Rootless file ownership | H4 m4 | --userns=keep-id, podman unshare | H4 m4 |
| Backup and restore of volumes | H4 m5 | podman volume export, podman volume import | H4 m5 |
| Network modes and DNS by name | H5 m1, m2 | podman network create, --network | H5 m2 |
| Publishing ports | H5 m3 | -p 127.0.0.1:host:container | H5 m3 |
| Pods | H5 m4 | podman pod create, --pod | H5 m4 |
| Compose projects | H6 m1, m2 | podman compose up, podman compose exec | H6 m2 |
| Kubernetes YAML | H6 m3, m4 | podman kube generate, podman kube play, podman kube down | H6 m4 |
| Rootless user IDs | H7 m1 | /etc/subuid, podman unshare cat /proc/self/uid_map | H7 m1 |
| Least privilege | H7 m2 | --user, --cap-drop, --read-only, --security-opt | H7 m2 |
| Secrets | H7 m3 | podman secret create, --secret | H7 m3 |
| Digest pinning | H7 m4 | image@sha256:... | H7 m4 |
| Quadlet services | H7 m5 | .container files, systemctl --user | H7 m5 |
| Auto-update and rollback | H7 m6 | AutoUpdate=registry, podman auto-update | H7 m6 |
| Diagnosis and production problems | H8 | podman logs, podman inspect, podman events | H8 m3 |