Does this describe the role of Control Groups (cgroups) when used with a Docker container?
Solution: accounting and limiting of resources
Correct Answer: A
Explanation
= Control Groups (cgroups) are a feature of the Linux kernel that allow you to limit the access processes and containers have to system resources such as CPU, memory, disk I/O, network, and so on1. Control groups allow Docker Engine to share available hardware resources to containers and optionally enforce limits and constraints2. For example, you can use the docker run command to specify the CPU shares, memory limit, or network bandwidth for a container3. By using cgroups, you can ensure that each container gets the resources it needs and prevent resource starvation or overcommitment4. References:
* Lab: Control Groups (cgroups) | dockerlabs
* Runtime metrics | Docker Docs
* Docker run reference | Docker Docs
* Docker resource management via Cgroups and systemd