aboutsummaryrefslogtreecommitdiff
path: root/docs/source/markdown/options/cpus.container.md
blob: 63f243e1123d997e6253790d323c6f35914b0564 (plain)
1
2
3
4
5
6
7
8
9
10
11
#### **--cpus**=*number*

Number of CPUs. The default is *0.0* which means no limit. This is shorthand
for **--cpu-period** and **--cpu-quota**, so you may only set either
**--cpus** or **--cpu-period** and **--cpu-quota**.

On some systems, changing the CPU limits may not be allowed for non-root
users. For more details, see
https://github.com/containers/podman/blob/main/troubleshooting.md#26-running-containers-with-resource-limits-fails-with-a-permissions-error

This option is not supported on cgroups V1 rootless systems.