April 2017
Beginner
404 pages
9h 30m
English
Using Docker, we can control CPU percentage, CPU period, CPU quota, CPU shares, CPU set, and CPU Set Mems. The following command uses the docker run command to allocate CPU resources to the container.
docker run -it --cpu-percent=50 microsoft/windowsservercore cmd
If you run docker inspect followed by the container ID of the previously mentioned container, you would notice that the CPU percent is set to 50, as shown in the following screenshot. Remember CPU Percent can only be an integer:

Similarly, you can set --cpu-period and --cpu-quota options to Completely Fair Scheduler's. The following table shows various other ...
Read now
Unlock full access