Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 1.19 KB

03-containers-and-virtual-machines.md

File metadata and controls

15 lines (8 loc) · 1.19 KB

Containers and Virtual Machines

Containers and virtual machines have similar resource isolation and allocation benefits but functions differently because containers virtualize the operating system instead of hardware. Containers are more portable and efficient.

Containers and Virtual Machines

Containers

Containers are an abstraction at the app layer that packages code and dependencies together. Multiple containers can run on the same machine and share the OS kernel with other containers, each running as isolated processes in userspace. Containers take up less space than VMs (container images are typically tens of MBs in size), can handle more applications and require fewer VMs and operating systems.

Virtual Machines

Virtual machines (VMs) are an abstraction of physical hardware, turning one server into many servers. The hypervisor allows multiple VMs to run on a single machine. Each VM includes a full copy of an operating system, the application, necessary binaries, and libraries - taking up tens of GBs. VMs can also be slow to boot.

Next: Hello World