Containers vs virtual machines
There is a common misconception that container are the same as virtual machines (VMs), but this is wrong.
Containers virtualise OS kernels, whereas VMs virtualise hardware.
Virtual machines
- Use hypervisors to emulate real hardware
- Take up loads of space
- Require OS installation from user
- Cannot interact with host machine
- Can run multiple apps
Containers
- Do not emulate hardware
- Uses same OS and hardware as host machine
- Do not require OS install
- Take up less space
- Can only run 1 app at a time
- Can interact with host