Docker & Containers
Namespaces: what a container can see
Two containers on one host both say they are PID 1, both listen on port 80 and both call themselves app. Nothing is faked: each one is looking at its own private copy of the machine.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Docker & Containers
- Tags vs digests: reproducible buildsBeginner · 5 min
Friday's build passed and Monday's failed with the same Dockerfile and the same commit. A tag is a label someone can move, and a digest is a fingerprint no one can.
- OCI image manifestBeginner · 4 min
OCI image manifest describes layers configuration and platform.
- Run as non-root and drop capabilitiesBeginner · 5 min
Root inside a container is still root as far as the kernel's permission checks go. Two changes cut that power down: run as a normal user and drop the capabilities you…
- SeccompBeginner · 4 min
Seccomp filters available system calls.
- Rootless containersBeginner · 4 min
Rootless containers run daemon or containers without host root.
- CPU limits and throttlingBeginner · 5 min
A container shows 20% average CPU and still freezes for tenth-of-a-second stretches. The limit does not slow the CPU down, it switches the container off for part of…