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.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit