Interview Prep/Docker/Runtimes: containerd, OCI, rootless and Podman

How are containers isolated at kernel level?

BeginnerScenarioRuntimes: containerd, OCI, rootless and Podman
Answer

Situation read → Fundamental concept.

What I'd do → Namespaces (pid, net, mnt, uts, ipc, user, cgroup) restrict what a process sees; cgroups limit what it can use; capabilities, seccomp and LSMs (AppArmor/SELinux) restrict what it can do.

lsns -p $(docker inspect -f '{{.State.Pid}}' web)

Why → Containers are regular processes with restricted views, not VMs.

Interview tip → Shared kernel is the key difference from VMs.

All Docker questions Roadmap: Docker & containers

More on Runtimes: containerd, OCI, rootless and Podman