How to give docker exclusive access to cpus?

325 Views Asked by At

Is there any way I can give a docker instance exclusive access to some of the cpus?

1

There are 1 best solutions below

3
Shibashis On

You can use cpusets to specify where the docker containers can execute. You can also specify cpu shares (cycles) to ensure, the docker container gets all the cycles available.