Interview Prep/Docker/Containers, VMs & Isolation Internals

How are containers different from chroot?

BeginnerConceptContainers, VMs & Isolation Internals
Answer

chroot only changes the apparent filesystem root of a process. It does not isolate PIDs, network, users, IPC or limit resources, and root can escape it trivially. Containers combine mount namespace (with pivot_root), the other namespaces, cgroups, capabilities and seccomp.

All Docker questions Roadmap: Docker & containers

More on Containers, VMs & Isolation Internals