DCA · Question #25
What is used by the kernel to Isolate resources when running Docker containers?
The correct answer is D. Control groups (also know as cgroups). Control Groups (cgroups) are a Linux kernel feature used by Docker to isolate and manage resource usage like CPU and memory for containers.
Question
What is used by the kernel to Isolate resources when running Docker containers?
Options
- ANamespaces
- BOverlay networks
- CVolumes
- DControl groups (also know as cgroups)
How the community answered
(33 responses)- A6% (2)
- B3% (1)
- C3% (1)
- D88% (29)
Why each option
Control Groups (cgroups) are a Linux kernel feature used by Docker to isolate and manage resource usage like CPU and memory for containers.
Namespaces provide isolation for process IDs, network interfaces, mount points, and users, but cgroups are specifically responsible for resource limiting and accounting.
Overlay networks provide network connectivity and isolation between containers, potentially across multiple hosts, but they do not manage host-level compute resources like CPU or memory.
Volumes provide persistent storage for containers, allowing data to persist independently of the container's lifecycle, but they are not used for isolating compute resources.
Control Groups (cgroups) are a fundamental Linux kernel feature that allows Docker to limit, account for, and isolate resource usage (such as CPU, memory, and I/O) for containers, preventing one container from monopolizing host resources.
Concept tested: Linux kernel resource isolation (cgroups)
Source: https://docs.docker.com/engine/understanding-docker/runtimes/
Topics
Community Discussion
No community discussion yet for this question.