Docker and CI/CD · Junior · Question 1 of 75
How does a container differ from a virtual machine?
- 1It emulates the full hardware, so it can run any operating system
- 2It is a virtual machine that the cloud provider manages for you
- ✓Correct answer: It shares the host kernel instead of running its own OS
Explanation
Containers are isolated processes on the host kernel (namespaces and cgroups), so they start in milliseconds and use little memory. A VM boots a whole guest OS on virtual hardware.