supraj.dev
Containers

Containers vs VMs

What actually makes a container so much lighter than a virtual machine?

28 s loop7 sentencesSilent, read alongScene: Layers
Read the story, sentence by sentence 7 sentences

What you'll be able to say

  1. A virtual machine runs a full guest operating system, including its own kernel, on virtual hardware provided by a hypervisor.
  2. Containers share the host’s kernel, using Linux namespaces and cgroups to isolate and limit processes, so they’re lightweight.
  3. Sharing one kernel makes containers lighter, while VMs typically give stronger isolation and can run a different operating system than the host.