Interview Prep/Docker/Containers, VMs & Isolation Internals

What are gVisor and Kata Containers, and how do they differ from runc?

AdvancedConceptContainers, VMs & Isolation Internals
Answer

Both are OCI runtimes for stronger isolation. gVisor (runsc) implements a user-space kernel that intercepts syscalls, so the app never talks directly to the host kernel (some compatibility and I/O overhead). Kata runs each container/pod in a lightweight VM with its own guest kernel (QEMU, Cloud Hypervisor or Firecracker). runc shares the host kernel directly. Use with docker run --runtime=runsc.

All Docker questions Roadmap: Docker & containers

More on Containers, VMs & Isolation Internals