1 of 4

Your RightSignal

Operating systems · 9 of 91 / 3

Containers

The concept

Why an app in a Docker container thinks it has the machine to itself

A container is an ordinary process wrapped in two Linux kernel features. Namespaces control what it can see: its own process IDs, files, network and hostname. Control groups (cgroups) cap what it can use: CPU, memory, disk.

Take a web server started with Docker. It sees only its own processes and its image's files (the packaged app and libraries). There's no second operating system: one shared kernel just draws walls around it.