0
0
Dockerdevops~5 mins

Containers vs virtual machines in Docker - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is a container in simple terms?
A container is like a small, portable box that holds an app and everything it needs to run, sharing the computer's main system but staying separate from other apps.
Click to reveal answer
beginner
How does a virtual machine (VM) differ from a container?
A VM is like a whole computer inside your computer, with its own operating system, while a container shares the main operating system but keeps apps isolated.
Click to reveal answer
intermediate
Why are containers usually faster to start than virtual machines?
Containers start faster because they share the main operating system and don't need to boot a full separate system like VMs do.
Click to reveal answer
intermediate
What is one main advantage of virtual machines over containers?
Virtual machines provide stronger isolation because each VM runs a full operating system, making them better for running different OS types or very secure environments.
Click to reveal answer
intermediate
Can containers run different operating systems than the host machine?
No, containers share the host's operating system kernel, so they cannot run a different OS than the host, unlike virtual machines which can.
Click to reveal answer
What do containers share with the host system?
AThe entire operating system
BThe operating system kernel
CHardware only
DNothing, they are fully separate
Which technology boots a full operating system inside your computer?
AVirtual machine
BContainer
CDocker image
DKubernetes pod
Why might you choose a virtual machine over a container?
AFor faster startup times
BTo save disk space
CTo run a different operating system than the host
DBecause they share the host OS kernel
Which is generally more lightweight and uses fewer resources?
AContainers
BVirtual machines
CBoth use the same resources
DNeither, they are the same
What is a key security difference between containers and virtual machines?
AContainers have stronger isolation
BNeither provides isolation
CBoth have the same isolation level
DVirtual machines have stronger isolation
Explain the main differences between containers and virtual machines in simple terms.
Think about how each runs apps and uses the computer's system.
You got /4 concepts.
    Describe a situation where you would prefer using a virtual machine instead of a container.
    Consider when full separation from the host system is important.
    You got /4 concepts.