docker run --cpus 1.5 myimage

Category: Docker

docker run --cpus 1.5 myimage

Limit container to 1.5 CPU cores

Restricts the container to using at most 1.5 CPU cores, leaving other processes unaffected.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.