📦Linux Namespace
Also known as Namespaces (Linux), Kernel Namespace, PID Namespace, Network Namespace
A Linux trick that gives programs a private view of the system. Each box is built on it.
Think of it like
Think of it like a room with the blinds down. You only see what is in your own room.
Example
Why it matters
Definition
Example code
console
$ docker run --rm alpine ps
PID USER TIME COMMAND
1 root 0:00 psCommon mistake
Key takeaways
- 1A private view. Programs see only their own part.
- 2Eight kinds. Processes, network, files, users and more.
- 3One shared kernel. Walls, not a separate machine.