diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-06 09:09:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 09:09:50 +0200 |
commit | 43baf49bb8d8e3dc48bdb8d38fb84a065d4d3ce8 (patch) | |
tree | 40451e8a738297a4b889cba15000fc0b8a1706fb /docs/source/markdown/podman-container-clone.1.md.in | |
parent | 8882b7664d225bf7f8efac6ab10e8d583e48c712 (diff) | |
parent | fb38838feafb0d2adae278922da948e52419c9f3 (diff) | |
download | podman-43baf49bb8d8e3dc48bdb8d38fb84a065d4d3ce8.tar.gz podman-43baf49bb8d8e3dc48bdb8d38fb84a065d4d3ce8.tar.bz2 podman-43baf49bb8d8e3dc48bdb8d38fb84a065d4d3ce8.zip |
Merge pull request #15636 from edsantiago/docs_dedup_memory
[CI:DOCS] Man pages: refactor common options: --memory*
Diffstat (limited to 'docs/source/markdown/podman-container-clone.1.md.in')
-rw-r--r-- | docs/source/markdown/podman-container-clone.1.md.in | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/docs/source/markdown/podman-container-clone.1.md.in b/docs/source/markdown/podman-container-clone.1.md.in index 3e31389d2..6e40a9496 100644 --- a/docs/source/markdown/podman-container-clone.1.md.in +++ b/docs/source/markdown/podman-container-clone.1.md.in @@ -64,28 +64,15 @@ Force removal of the original container that we are cloning. Can only be used in If no memory limits are specified, the original container's will be used. -#### **--memory-reservation**=*limit* +@@option memory-reservation -Memory soft limit (format: `<number>[<unit>]`, where unit = b (bytes), k (kibibytes), m (mebibytes), or g (gibibytes)) +If unspecified, memory reservation will be the same as memory limit from the +container being cloned. -After setting memory reservation, when the system detects memory contention -or low memory, containers are forced to restrict their consumption to their -reservation. So you should always set the value below **--memory**, otherwise the -hard limit will take precedence. By default, memory reservation will be the same -as memory limit from the container being cloned. +@@option memory-swap -#### **--memory-swap**=*limit* - -A limit value equal to memory plus swap. Must be used with the **-m** -(**--memory**) flag. The swap `LIMIT` should always be larger than **-m** -(**--memory**) value. By default, the swap `LIMIT` will be set to double -the value of --memory if specified. Otherwise, the container being cloned will be used to derive the swap value. - -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. +If unspecified, the container being cloned will be used to derive +the swap value. @@option memory-swappiness |