[BTY] Day 3: Docker Container CPU Limits
Dang Hoang Nhu Nguyen
Posted on December 28, 2021
Today I found an interesting fact (for myself only, you've probably already known) about Docker Container CPU Limits from this
article: https://www.thorsten-hans.com/docker-container-cpu-limits-explained/.
By default, Docker does not apply any CPU limitations. Containers can all of the hosts given CPU power (mentioned in the official doc).
However, a Docker container will not consume the entire CPU power of your physical host. If you are using Docker Desktop, the mentioned host, it is a virtualized host, responsible for running your Docker containers. On macOS, the host is a virtualized system leveraging Apple’s Hypervisor framework. We can use the Docker Desktop application to control the overall limit of CPU utilization in all Docker containers.
For example, by default, Docker Desktop is set to use half the number of processors available on the host machine (as mentioned here).
I will definitely check it out.
Posted on December 28, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.