What fundamentally distinguishes a container from a virtual machine?
Correct answer
D. Containers share the host kernel and isolate at the process level, whereas each VM runs its own guest kernel
14 views
D. Containers share the host kernel and isolate at the process level, whereas each VM runs its own guest kernel
14 views
Container versus virtual machine: containers are isolated processes using kernel features such as namespaces and cgroups, so they start in milliseconds and share the host kernel. A VM virtualises hardware and boots a full guest OS, giving a stronger isolation boundary at the cost of size and start time. Because the kernel is shared, a container escape is a more serious risk than a VM escape.
Asked in: NTS, PPSC IT, Campus Interviews
Not sure why the answer is D? Ask here and get an explanation.