Diagram
Side-by-side layered stacks comparing a VM host with full guest OS per VM versus a container host where two containers share one host OS kernel and runtime for higher density.
Structural Differences in Packaging and Isolation
Structural differences in packaging explain why containers are lighter and more portable than VMs. A VM on Compute Engine runs a full operating system image with software installed on top, so the developer must track runtime dependencies and resolve library conflicts manually. A container carries its app and required libraries together and is isolated from host operating system apps and libraries, so it moves between environments without fixing version conflicts on each host. Because containers require considerably fewer compute and memory resources, a cluster achieves greater density with fine-grained allocations, which lowers infrastructure cost as service count grows.
Domain 4 of 6
137 practice questions
Practice this DomainLast updated