ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 176 - DCA discussion

Report
Export

Will this Linux kernel facility limit a Docker container's access to host resources, such as CPU or memory?

Solution: cgroups

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: A

Explanation:

Docker uses cgroups, a Linux kernel feature, to limit the resources a container can use. This includes CPU and memory resources12. For instance, Docker can limit a container's CPU usage to the equivalent of a single CPU core on the Docker host system2. Similarly, Docker can limit a container's memory usage1. However, to use these features, the Docker host must have cgroup memory and swap accounting enabled1. Therefore, cgroups can indeed limit a Docker container's access to host resources such as CPU and memory12.

asked 08/11/2024
Mark Baker
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first