老师,可以限制容器使用cpu核数吗?
来源:3-12 容器的资源限制
慕用5448414
2019-03-15
写回答
1回答
-
麦兜搞IT
2019-03-17
您好,您可以看看这个文档 https://docs.docker.com/config/containers/resource_constraints/
--cpuset-cpus Limit the specific CPUs or cores a container can use. A comma-separated list or hyphen-separated range of CPUs a container can use, if you have more than one CPU. The first CPU is numbered 0. A valid value might be 0-3 (to use the first, second, third, and fourth CPU) or 1,3 (to use the second and fourth CPU).
00
相似问题