mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Warning messages are printed and ignored if we use an unsupported option
When an unsupported limit on cgroups V1 rootless systems is requested, podman prints an warning message and ignores the option/flag. ``` Target options/flags: --cpu-period, --cpu-quota, --cpu-rt-period, --cpu-rt-runtime, --cpus, --cpu-shares, --cpuset-cpus, --cpuset-mems, --memory, --memory-reservation, --memory-swap, --memory-swappiness, --blkio-weight, --device-read-bps, --device-write-bps, --device-read-iops, --device-write-iops, --blkio-weight-device ``` Related to https://github.com/containers/podman/discussions/10152 Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
This commit is contained in:
@ -40,6 +40,8 @@ Set a number of CPUs for the container that overrides the original containers CP
|
||||
This is shorthand
|
||||
for **--cpu-period** and **--cpu-quota**, so only **--cpus** or either both the **--cpu-period** and **--cpu-quota** options can be set.
|
||||
|
||||
This option is not supported on cgroups V1 rootless systems.
|
||||
|
||||
@@option cpuset-cpus
|
||||
|
||||
If none are specified, the original container's CPUset is used.
|
||||
@ -54,10 +56,14 @@ If none are specified, the original container's CPU memory nodes are used.
|
||||
|
||||
Limit read rate (bytes per second) from a device (e.g. --device-read-bps=/dev/sda:1mb).
|
||||
|
||||
This option is not supported on cgroups V1 rootless systems.
|
||||
|
||||
#### **--device-write-bps**=*path*
|
||||
|
||||
Limit write rate (bytes per second) to a device (e.g. --device-write-bps=/dev/sda:1mb)
|
||||
|
||||
This option is not supported on cgroups V1 rootless systems.
|
||||
|
||||
#### **--force**, **-f**
|
||||
|
||||
Force removal of the original container that we are cloning. Can only be used in conjunction with **--destroy**.
|
||||
@ -74,6 +80,8 @@ system's page size (the value would be very large, that's millions of trillions)
|
||||
|
||||
If no memory limits are specified, the original container's will be used.
|
||||
|
||||
This option is not supported on cgroups V1 rootless systems.
|
||||
|
||||
#### **--memory-reservation**=*limit*
|
||||
|
||||
Memory soft limit (format: `<number>[<unit>]`, where unit = b (bytes), k (kibibytes), m (mebibytes), or g (gibibytes))
|
||||
@ -84,6 +92,8 @@ reservation. So you should always set the value below **--memory**, otherwise th
|
||||
hard limit will take precedence. By default, memory reservation will be the same
|
||||
as memory limit from the container being cloned.
|
||||
|
||||
This option is not supported on cgroups V1 rootless systems.
|
||||
|
||||
#### **--memory-swap**=*limit*
|
||||
|
||||
A limit value equal to memory plus swap. Must be used with the **-m**
|
||||
@ -95,6 +105,8 @@ The format of `LIMIT` is `<number>[<unit>]`. Unit can be `b` (bytes),
|
||||
`k` (kibibytes), `m` (mebibytes), or `g` (gibibytes). If you don't specify a
|
||||
unit, `b` is used. Set LIMIT to `-1` to enable unlimited swap.
|
||||
|
||||
This option is not supported on cgroups V1 rootless systems.
|
||||
|
||||
@@option memory-swappiness
|
||||
|
||||
#### **--name**
|
||||
|
Reference in New Issue
Block a user