aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/source/markdown/.gitignore2
-rw-r--r--docs/source/markdown/options/add-host.md6
-rw-r--r--docs/source/markdown/options/cgroup-parent.md5
-rw-r--r--docs/source/markdown/options/cgroupns.md10
-rw-r--r--docs/source/markdown/options/cgroups.md10
-rw-r--r--docs/source/markdown/options/conmon-pidfile.md4
-rw-r--r--docs/source/markdown/options/cpu-period.md10
-rw-r--r--docs/source/markdown/options/cpu-quota.md12
-rw-r--r--docs/source/markdown/options/cpu-rt-period.md7
-rw-r--r--docs/source/markdown/options/cpu-rt-runtime.md10
-rw-r--r--docs/source/markdown/options/cpu-shares.md35
-rw-r--r--docs/source/markdown/options/cpuset-cpus.md5
-rw-r--r--docs/source/markdown/options/cpuset-mems.md8
-rw-r--r--docs/source/markdown/options/no-hosts.md5
-rw-r--r--docs/source/markdown/podman-build.1.md.in (renamed from docs/source/markdown/podman-build.1.md)93
-rw-r--r--docs/source/markdown/podman-container-clone.1.md.in94
-rw-r--r--docs/source/markdown/podman-create.1.md.in134
-rw-r--r--docs/source/markdown/podman-kube-play.1.md.in (renamed from docs/source/markdown/podman-kube-play.1.md)5
-rw-r--r--docs/source/markdown/podman-pod-clone.1.md.in54
-rw-r--r--docs/source/markdown/podman-pod-create.1.md.in71
-rw-r--r--docs/source/markdown/podman-run.1.md.in134
-rwxr-xr-xhack/markdown-preprocess2
-rwxr-xr-xhack/markdown-preprocess-review4
23 files changed, 186 insertions, 534 deletions
diff --git a/docs/source/markdown/.gitignore b/docs/source/markdown/.gitignore
index 622ec33ff..6689b5b71 100644
--- a/docs/source/markdown/.gitignore
+++ b/docs/source/markdown/.gitignore
@@ -1,5 +1,7 @@
+podman-build.1.md
podman-container-clone.1.md
podman-create.1.md
+podman-kube-play.1.md
podman-pod-clone.1.md
podman-pod-create.1.md
podman-pull.1.md
diff --git a/docs/source/markdown/options/add-host.md b/docs/source/markdown/options/add-host.md
new file mode 100644
index 000000000..a6021cd3b
--- /dev/null
+++ b/docs/source/markdown/options/add-host.md
@@ -0,0 +1,6 @@
+#### **--add-host**=*host:ip*
+
+Add a custom host-to-IP mapping (host:ip)
+
+Add a line to /etc/hosts. The format is hostname:ip. The **--add-host**
+option can be set multiple times. Conflicts with the **--no-hosts** option.
diff --git a/docs/source/markdown/options/cgroup-parent.md b/docs/source/markdown/options/cgroup-parent.md
new file mode 100644
index 000000000..f376e4860
--- /dev/null
+++ b/docs/source/markdown/options/cgroup-parent.md
@@ -0,0 +1,5 @@
+#### **--cgroup-parent**=*path*
+
+Path to cgroups under which the cgroup for the <<container|pod>> will be created. If the
+path is not absolute, the path is considered to be relative to the cgroups path
+of the init process. Cgroups will be created if they do not already exist.
diff --git a/docs/source/markdown/options/cgroupns.md b/docs/source/markdown/options/cgroupns.md
new file mode 100644
index 000000000..6117b3fe1
--- /dev/null
+++ b/docs/source/markdown/options/cgroupns.md
@@ -0,0 +1,10 @@
+#### **--cgroupns**=*mode*
+
+Set the cgroup namespace mode for the container.
+
+- **host**: use the host's cgroup namespace inside the container.
+- **container:**_id_: join the namespace of the specified container.
+- **private**: create a new cgroup namespace.
+- **ns:**_path_: join the namespace at the specified path.
+
+If the host uses cgroups v1, the default is set to **host**. On cgroups v2, the default is **private**.
diff --git a/docs/source/markdown/options/cgroups.md b/docs/source/markdown/options/cgroups.md
new file mode 100644
index 000000000..0dbbb15f3
--- /dev/null
+++ b/docs/source/markdown/options/cgroups.md
@@ -0,0 +1,10 @@
+#### **--cgroups**=*how*
+
+Determines whether the container will create CGroups.
+
+Default is **enabled**.
+
+The **enabled** option will create a new cgroup under the cgroup-parent.
+The **disabled** option will force the container to not create CGroups, and thus conflicts with CGroup options (**--cgroupns** and **--cgroup-parent**).
+The **no-conmon** option disables a new CGroup only for the **conmon** process.
+The **split** option splits the current CGroup in two sub-cgroups: one for conmon and one for the container payload. It is not possible to set **--cgroup-parent** with **split**.
diff --git a/docs/source/markdown/options/conmon-pidfile.md b/docs/source/markdown/options/conmon-pidfile.md
new file mode 100644
index 000000000..e0e337cc8
--- /dev/null
+++ b/docs/source/markdown/options/conmon-pidfile.md
@@ -0,0 +1,4 @@
+#### **--conmon-pidfile**=*file*
+
+Write the pid of the **conmon** process to a file. As **conmon** runs in a separate process than Podman, this is necessary when using systemd to restart Podman containers.
+(This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
diff --git a/docs/source/markdown/options/cpu-period.md b/docs/source/markdown/options/cpu-period.md
new file mode 100644
index 000000000..8df6445e9
--- /dev/null
+++ b/docs/source/markdown/options/cpu-period.md
@@ -0,0 +1,10 @@
+#### **--cpu-period**=*limit*
+
+Set the CPU period for the Completely Fair Scheduler (CFS), which is a
+duration in microseconds. Once the container's CPU quota is used up, it will
+not be scheduled to run until the current period ends. Defaults to 100000
+microseconds.
+
+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-cpu-limits-fails-with-a-permissions-error
diff --git a/docs/source/markdown/options/cpu-quota.md b/docs/source/markdown/options/cpu-quota.md
new file mode 100644
index 000000000..67b9dee8c
--- /dev/null
+++ b/docs/source/markdown/options/cpu-quota.md
@@ -0,0 +1,12 @@
+#### **--cpu-quota**=*limit*
+
+Limit the CPU Completely Fair Scheduler (CFS) quota.
+
+Limit the container's CPU usage. By default, containers run with the full
+CPU resource. The limit is a number in microseconds. If a number is provided,
+the container will be allowed to use that much CPU time until the CPU period
+ends (controllable via **--cpu-period**).
+
+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-cpu-limits-fails-with-a-permissions-error
diff --git a/docs/source/markdown/options/cpu-rt-period.md b/docs/source/markdown/options/cpu-rt-period.md
new file mode 100644
index 000000000..9014beb33
--- /dev/null
+++ b/docs/source/markdown/options/cpu-rt-period.md
@@ -0,0 +1,7 @@
+#### **--cpu-rt-period**=*microseconds*
+
+Limit the CPU real-time period in microseconds.
+
+Limit the container's Real Time CPU usage. This option tells the kernel to restrict the container's Real Time CPU usage to the period specified.
+
+This option is not supported on cgroups V2 systems.
diff --git a/docs/source/markdown/options/cpu-rt-runtime.md b/docs/source/markdown/options/cpu-rt-runtime.md
new file mode 100644
index 000000000..05b1d3b96
--- /dev/null
+++ b/docs/source/markdown/options/cpu-rt-runtime.md
@@ -0,0 +1,10 @@
+#### **--cpu-rt-runtime**=*microseconds*
+
+Limit the CPU real-time runtime in microseconds.
+
+Limit the containers Real Time CPU usage. This option tells the kernel to limit the amount of time in a given CPU period Real Time tasks may consume. Ex:
+Period of 1,000,000us and Runtime of 950,000us means that this container could consume 95% of available CPU and leave the remaining 5% to normal priority tasks.
+
+The sum of all runtimes across containers cannot exceed the amount allotted to the parent cgroup.
+
+This option is not supported on cgroups V2 systems.
diff --git a/docs/source/markdown/options/cpu-shares.md b/docs/source/markdown/options/cpu-shares.md
new file mode 100644
index 000000000..a5aacd2ca
--- /dev/null
+++ b/docs/source/markdown/options/cpu-shares.md
@@ -0,0 +1,35 @@
+#### **--cpu-shares**, **-c**=*shares*
+
+CPU shares (relative weight).
+
+By default, all containers get the same proportion of CPU cycles. This
+proportion can be modified by changing the container's CPU share weighting
+relative to the combined weight of all the running containers.
+Default weight is **1024**.
+
+The proportion will only apply when CPU-intensive processes are running.
+When tasks in one container are idle, other containers can use the
+left-over CPU time. The actual amount of CPU time will vary depending on
+the number of containers running on the system.
+
+For example, consider three containers, one has a cpu-share of 1024 and
+two others have a cpu-share setting of 512. When processes in all three
+containers attempt to use 100% of CPU, the first container would receive
+50% of the total CPU time. If a fourth container is added with a cpu-share
+of 1024, the first container only gets 33% of the CPU. The remaining containers
+receive 16.5%, 16.5% and 33% of the CPU.
+
+On a multi-core system, the shares of CPU time are distributed over all CPU
+cores. Even if a container is limited to less than 100% of CPU time, it can
+use 100% of each individual CPU core.
+
+For example, consider a system with more than three cores.
+If the container _C0_ is started with **--cpu-shares=512** running one process,
+and another container _C1_ with **--cpu-shares=1024** running two processes,
+this can result in the following division of CPU shares:
+
+| PID | container | CPU | CPU share |
+| ---- | ----------- | ------- | ------------ |
+| 100 | C0 | 0 | 100% of CPU0 |
+| 101 | C1 | 1 | 100% of CPU1 |
+| 102 | C1 | 2 | 100% of CPU2 |
diff --git a/docs/source/markdown/options/cpuset-cpus.md b/docs/source/markdown/options/cpuset-cpus.md
new file mode 100644
index 000000000..d717516a0
--- /dev/null
+++ b/docs/source/markdown/options/cpuset-cpus.md
@@ -0,0 +1,5 @@
+#### **--cpuset-cpus**=*number*
+
+CPUs in which to allow execution. Can be specified as a comma-separated list
+(e.g. **0,1**), as a range (e.g. **0-3**), or any combination thereof
+(e.g. **0-3,7,11-15**).
diff --git a/docs/source/markdown/options/cpuset-mems.md b/docs/source/markdown/options/cpuset-mems.md
new file mode 100644
index 000000000..d2d13eb54
--- /dev/null
+++ b/docs/source/markdown/options/cpuset-mems.md
@@ -0,0 +1,8 @@
+#### **--cpuset-mems**=*nodes*
+
+Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on
+NUMA systems.
+
+If there are four memory nodes on the system (0-3), use **--cpuset-mems=0,1**
+then processes in the container will only use memory from the first
+two memory nodes.
diff --git a/docs/source/markdown/options/no-hosts.md b/docs/source/markdown/options/no-hosts.md
new file mode 100644
index 000000000..5b1e95b86
--- /dev/null
+++ b/docs/source/markdown/options/no-hosts.md
@@ -0,0 +1,5 @@
+#### **--no-hosts**
+
+Do not create _/etc/hosts_ for the <<container|pod>>.
+By default, Podman will manage _/etc/hosts_, adding the container's own IP address and any hosts from **--add-host**.
+**--no-hosts** disables this, and the image's _/etc/hosts_ will be preserved unmodified.
diff --git a/docs/source/markdown/podman-build.1.md b/docs/source/markdown/podman-build.1.md.in
index a5011f4aa..34282e2d2 100644
--- a/docs/source/markdown/podman-build.1.md
+++ b/docs/source/markdown/podman-build.1.md.in
@@ -47,12 +47,7 @@ command to see these containers. External containers can be removed with the
## OPTIONS
-#### **--add-host**=*host*
-
-Add a custom host-to-IP mapping (host:ip)
-
-Add a line to /etc/hosts. The format is hostname:ip. The **--add-host** option
-can be set multiple times. Conflicts with the --no-hosts option.
+@@option add-host
#### **--all-platforms**
@@ -183,11 +178,7 @@ given.
Use certificates at *path* (\*.crt, \*.cert, \*.key) to connect to the registry. (Default: /etc/containers/certs.d)
Please refer to containers-certs.d(5) for details. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
-#### **--cgroup-parent**=*path*
-
-Path to cgroups under which the cgroup for the container will be created. If the
-path is not absolute, the path is considered to be relative to the cgroups path
-of the init process. Cgroups will be created if they do not already exist.
+@@option cgroup-parent
#### **--cgroupns**=*how*
@@ -206,80 +197,15 @@ Thus, compressing the data before sending it is irrelevant to Podman. (This opti
Set additional flags to pass to the C Preprocessor cpp(1). Containerfiles ending with a ".in" suffix will be preprocessed via cpp(1). This option can be used to pass additional flags to cpp.Note: You can also set default CPPFLAGS by setting the BUILDAH_CPPFLAGS environment variable (e.g., export BUILDAH_CPPFLAGS="-DDEBUG").
-#### **--cpu-period**=*limit*
-
-Set the CPU period for the Completely Fair Scheduler (CFS), which is a
-duration in microseconds. Once the container's CPU quota is used up, it will
-not be scheduled to run until the current period ends. Defaults to 100000
-microseconds.
-
-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-cpu-limits-fails-with-a-permissions-error
-
-#### **--cpu-quota**=*limit*
-
-Limit the CPU Completely Fair Scheduler (CFS) quota.
-
-Limit the container's CPU usage. By default, containers run with the full
-CPU resource. The limit is a number in microseconds. If you provide a number,
-the container will be allowed to use that much CPU time until the CPU period
-ends (controllable via **--cpu-period**).
-
-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-cpu-limits-fails-with-a-permissions-error
-
-#### **--cpu-shares**, **-c**=*shares*
-
-CPU shares (relative weight)
-
-By default, all containers get the same proportion of CPU cycles. This
-proportion can be modified by changing the container's CPU share weighting
-relative to the weighting of all other running containers.
-
-To modify the proportion from the default of 1024, use the **--cpu-shares**
-option to set the weighting to 2 or higher.
-
-The proportion will only apply when CPU-intensive processes are running.
-When tasks in one container are idle, other containers can use the
-left-over CPU time. The actual amount of CPU time will vary depending on
-the number of containers running on the system.
-
-For example, consider three containers, one has a cpu-share of 1024 and
-two others have a cpu-share setting of 512. When processes in all three
-containers attempt to use 100% of CPU, the first container would receive
-50% of the total CPU time. If you add a fourth container with a cpu-share
-of 1024, the first container only gets 33% of the CPU. The remaining containers
-receive 16.5%, 16.5% and 33% of the CPU.
-
-On a multi-core system, the shares of CPU time are distributed over all CPU
-cores. Even if a container is limited to less than 100% of CPU time, it can
-use 100% of each individual CPU core.
-
-For example, consider a system with more than three cores. If you start one
-container **{C0}** with **-c=512** running one process, and another container
-**{C1}** with **-c=1024** running two processes, this can result in the
-following
-division of CPU shares:
-
- PID container CPU CPU share
- 100 {C0} 0 100% of CPU0
- 101 {C1} 1 100% of CPU1
- 102 {C1} 2 100% of CPU2
-
-#### **--cpuset-cpus**=*num*
+@@option cpu-period
- CPUs in which to allow execution (0-3, 0,1)
+@@option cpu-quota
-#### **--cpuset-mems**=*nodes*
+@@option cpu-shares
-Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on
-NUMA systems.
+@@option cpuset-cpus
-If you have four memory nodes on your system (0-3), use `--cpuset-mems=0,1`
-then processes in your container will only use memory from the first
-two memory nodes.
+@@option cpuset-mems
#### **--creds**=*creds*
@@ -520,11 +446,8 @@ considered insecure.
Do not use existing cached images for the container build. Build from the start
with a new set of cached layers.
-#### **--no-hosts**
+@@option no-hosts
-Do not create _/etc/hosts_ for the container.
-By default, Podman will manage _/etc/hosts_, adding the container's own IP address and any hosts from **--add-host**.
-**--no-hosts** disables this, and the image's _/etc/hosts_ will be preserved unmodified.
This option conflicts with **--add-host**.
#### **--omit-history**
diff --git a/docs/source/markdown/podman-container-clone.1.md.in b/docs/source/markdown/podman-container-clone.1.md.in
index 0b26e3479..cf760d7a2 100644
--- a/docs/source/markdown/podman-container-clone.1.md.in
+++ b/docs/source/markdown/podman-container-clone.1.md.in
@@ -15,93 +15,21 @@ podman\-container\-clone - Creates a copy of an existing container
@@option blkio-weight-device
-#### **--cpu-period**=*limit*
-
-Set the CPU period for the Completely Fair Scheduler (CFS), which is a
-duration in microseconds. Once the container's CPU quota is used up, it will
-not be scheduled to run until the current period ends. Defaults to 100000
-microseconds.
-
-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/master/troubleshooting.md#26-running-containers-with-cpu-limits-fails-with-a-permissions-error
+@@option cpu-period
If none is specified, the original container's cpu period is used
-#### **--cpu-quota**=*limit*
-
-Limit the CPU Completely Fair Scheduler (CFS) quota.
-
-Limit the container's CPU usage. By default, containers run with the full
-CPU resource. The limit is a number in microseconds. If a number is provided,
-the container will be allowed to use that much CPU time until the CPU period
-ends (controllable via **--cpu-period**).
-
-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/master/troubleshooting.md#26-running-containers-with-cpu-limits-fails-with-a-permissions-error
+@@option cpu-quota
If none is specified, the original container's CPU quota are used.
-#### **--cpu-rt-period**=*microseconds*
-
-Limit the CPU real-time period in microseconds
-
-Limit the container's Real Time CPU usage. This option tells the kernel to restrict the container's Real Time CPU usage to the period specified.
-
-This option is not supported on cgroups V2 systems.
+@@option cpu-rt-period
If none is specified, the original container's CPU runtime period is used.
+@@option cpu-rt-runtime
-#### **--cpu-rt-runtime**=*microseconds*
-
-Limit the CPU real-time runtime in microseconds.
-
-Limit the containers Real Time CPU usage. This option tells the kernel to limit the amount of time in a given CPU period Real Time tasks may consume. Ex:
-Period of 1,000,000us and Runtime of 950,000us means that this container could consume 95% of available CPU and leave the remaining 5% to normal priority tasks.
-
-The sum of all runtimes across containers cannot exceed the amount allotted to the parent cgroup.
-
-This option is not supported on cgroups V2 systems.
-
-#### **--cpu-shares**, **-c**=*shares*
-
-CPU shares (relative weight)
-
-By default, all containers get the same proportion of CPU cycles. This proportion
-can be modified by changing the container's CPU share weighting relative
-to the weighting of all other running containers.
-
-To modify the proportion from the default of 1024, use the **--cpu-shares**
-option to set the weighting to 2 or higher.
-
-The proportion will only apply when CPU-intensive processes are running.
-When tasks in one container are idle, other containers can use the
-left-over CPU time. The actual amount of CPU time will vary depending on
-the number of containers running on the system.
-
-For example, consider three containers, one has a cpu-share of 1024 and
-two others have a cpu-share setting of 512. When processes in all three
-containers attempt to use 100% of CPU, the first container would receive
-50% of the total CPU time. If a fourth container is added with a cpu-share
-of 1024, the first container only gets 33% of the CPU. The remaining containers
-receive 16.5%, 16.5% and 33% of the CPU.
-
-On a multi-core system, the shares of CPU time are distributed over all CPU
-cores. Even if a container is limited to less than 100% of CPU time, it can
-use 100% of each individual CPU core.
-
-For example, consider a system with more than three cores.
-If the container _C0_ is started with **--cpu-shares=512** running one process,
-and another container _C1_ with **--cpu-shares=1024** running two processes,
-this can result in the following division of CPU shares:
-
-| PID | container | CPU | CPU share |
-| ---- | ----------- | ------- | ------------ |
-| 100 | C0 | 0 | 100% of CPU0 |
-| 101 | C1 | 1 | 100% of CPU1 |
-| 102 | C1 | 2 | 100% of CPU2 |
+@@option cpu-shares
If none are specified, the original container's CPU shares are used.
@@ -112,17 +40,11 @@ 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.
-#### **--cpuset-cpus**
-
-CPUs in which to allow execution (0-3, 0,1). If none are specified, the original container's CPUset is used.
-
-#### **--cpuset-mems**=*nodes*
+@@option cpuset-cpus
-Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.
+If none are specified, the original container's CPUset is used.
-If there are four memory nodes on the system (0-3), use `--cpuset-mems=0,1`
-then processes in the container will only use memory from the first
-two memory nodes.
+@@option cpuset-mems
If none are specified, the original container's CPU memory nodes are used.
diff --git a/docs/source/markdown/podman-create.1.md.in b/docs/source/markdown/podman-create.1.md.in
index aa9116c4a..5bb1dceca 100644
--- a/docs/source/markdown/podman-create.1.md.in
+++ b/docs/source/markdown/podman-create.1.md.in
@@ -66,12 +66,7 @@ and specified with a _tag_.
## OPTIONS
-#### **--add-host**=*host*
-
-Add a custom host-to-IP mapping (host:ip)
-
-Add a line to /etc/hosts. The format is hostname:ip. The **--add-host**
-option can be set multiple times.
+@@option add-host
#### **--annotation**=*key=value*
@@ -111,29 +106,11 @@ Block IO relative device weight.
@@option cgroup-conf
-#### **--cgroup-parent**=*path*
-
-Path to cgroups under which the cgroup for the container will be created. If the path is not absolute, the path is considered to be relative to the cgroups path of the init process. Cgroups will be created if they do not already exist.
-
-#### **--cgroupns**=*mode*
-
-Set the cgroup namespace mode for the container.
- **`host`**: use the host's cgroup namespace inside the container.
- **`container:<NAME|ID>`**: join the namespace of the specified container.
- **`ns:<PATH>`**: join the namespace at the specified path.
- **`private`**: create a new cgroup namespace.
+@@option cgroup-parent
-If the host uses cgroups v1, the default is set to **host**. On cgroups v2 the default is **private**.
+@@option cgroupns
-#### **--cgroups**=*mode*
-
-Determines whether the container will create CGroups.
-Valid values are *enabled*, *disabled*, *no-conmon*, *split*, with the default being *enabled*.
-
-The *enabled* option will create a new cgroup under the cgroup-parent.
-The *disabled* option will force the container to not create CGroups, and thus conflicts with CGroup options (**--cgroupns** and **--cgroup-parent**).
-The *no-conmon* option disables a new CGroup only for the conmon process.
-The *split* option splits the current cgroup in two sub-cgroups: one for conmon and one for the container payload. It is not possible to set *--cgroup-parent* with *split*.
+@@option cgroups
@@option chrootdirs
@@ -141,91 +118,17 @@ The *split* option splits the current cgroup in two sub-cgroups: one for conmon
Write the container ID to the file
-#### **--conmon-pidfile**=*path*
-
-Write the pid of the `conmon` process to a file. `conmon` runs in a separate process than Podman, so this is necessary when using systemd to restart Podman containers.
-(This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
+@@option conmon-pidfile
-#### **--cpu-period**=*limit*
+@@option cpu-period
-Set the CPU period for the Completely Fair Scheduler (CFS), which is a
-duration in microseconds. Once the container's CPU quota is used up, it will
-not be scheduled to run until the current period ends. Defaults to 100000
-microseconds.
-
-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-cpu-limits-fails-with-a-permissions-error
-
-#### **--cpu-quota**=*limit*
-
-Limit the CPU Completely Fair Scheduler (CFS) quota.
-
-Limit the container's CPU usage. By default, containers run with the full
-CPU resource. The limit is a number in microseconds. If you provide a number,
-the container will be allowed to use that much CPU time until the CPU period
-ends (controllable via **--cpu-period**).
-
-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-cpu-limits-fails-with-a-permissions-error
+@@option cpu-quota
-#### **--cpu-rt-period**=*microseconds*
+@@option cpu-rt-period
-Limit the CPU real-time period in microseconds
+@@option cpu-rt-runtime
-Limit the container's Real Time CPU usage. This flag tell the kernel to restrict the container's Real Time CPU usage to the period you specify.
-
-This flag is not supported on cgroups V2 systems.
-
-#### **--cpu-rt-runtime**=*microseconds*
-
-Limit the CPU real-time runtime in microseconds
-
-Limit the containers Real Time CPU usage. This flag tells the kernel to limit the amount of time in a given CPU period Real Time tasks may consume. Ex:
-Period of 1,000,000us and Runtime of 950,000us means that this container could consume 95% of available CPU and leave the remaining 5% to normal priority tasks.
-
-The sum of all runtimes across containers cannot exceed the amount allotted to the parent cgroup.
-
-This flag is not supported on cgroups V2 systems.
-
-#### **--cpu-shares**, **-c**=*shares*
-
-CPU shares (relative weight)
-
-By default, all containers get the same proportion of CPU cycles. This proportion
-can be modified by changing the container's CPU share weighting relative
-to the weighting of all other running containers.
-
-To modify the proportion from the default of 1024, use the **--cpu-shares**
-flag to set the weighting to 2 or higher.
-
-The proportion will only apply when CPU-intensive processes are running.
-When tasks in one container are idle, other containers can use the
-left-over CPU time. The actual amount of CPU time will vary depending on
-the number of containers running on the system.
-
-For example, consider three containers, one has a cpu-share of 1024 and
-two others have a cpu-share setting of 512. When processes in all three
-containers attempt to use 100% of CPU, the first container would receive
-50% of the total CPU time. If you add a fourth container with a cpu-share
-of 1024, the first container only gets 33% of the CPU. The remaining containers
-receive 16.5%, 16.5% and 33% of the CPU.
-
-On a multi-core system, the shares of CPU time are distributed over all CPU
-cores. Even if a container is limited to less than 100% of CPU time, it can
-use 100% of each individual CPU core.
-
-For example, consider a system with more than three cores.
-If the container _C0_ is started with **--cpu-shares=512** running one process,
-and another container _C1_ with **--cpu-shares=1024** running two processes,
-this can result in the following division of CPU shares:
-
-| PID | container | CPU | CPU share |
-| ---- | ----------- | ------- | ------------ |
-| 100 | C0 | 0 | 100% of CPU0 |
-| 101 | C1 | 1 | 100% of CPU1 |
-| 102 | C1 | 2 | 100% of CPU2 |
+@@option cpu-shares
#### **--cpus**=*number*
@@ -237,17 +140,9 @@ 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-cpu-limits-fails-with-a-permissions-error
-#### **--cpuset-cpus**=*cpus*
-
-CPUs in which to allow execution (0-3, 0,1)
-
-#### **--cpuset-mems**=*nodes*
-
-Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.
+@@option cpuset-cpus
-If you have four memory nodes on your system (0-3), use `--cpuset-mems=0,1`
-then processes in your container will only use memory from the first
-two memory nodes.
+@@option cpuset-mems
#### **--device**=*host-device[:container-device][:permissions]*
@@ -556,11 +451,8 @@ Valid _mode_ values are:
@@option no-healthcheck
-#### **--no-hosts**
+@@option no-hosts
-Do not create _/etc/hosts_ for the container.
-By default, Podman will manage _/etc/hosts_, adding the container's own IP address and any hosts from **--add-host**.
-**--no-hosts** disables this, and the image's _/etc/hosts_ will be preserved unmodified.
This option conflicts with **--add-host**.
@@option oom-kill-disable
diff --git a/docs/source/markdown/podman-kube-play.1.md b/docs/source/markdown/podman-kube-play.1.md.in
index b3c385fe9..9e9fc7f38 100644
--- a/docs/source/markdown/podman-kube-play.1.md
+++ b/docs/source/markdown/podman-kube-play.1.md.in
@@ -214,11 +214,8 @@ Valid _mode_ values are:
Note: Rootlesskit changes the source IP address of incoming packets to an IP address in the container network namespace, usually `10.0.2.100`. If your application requires the real source IP address, e.g. web server logs, use the slirp4netns port handler. The rootlesskit port handler is also used for rootless containers when connected to user-defined networks.
- **port_handler=slirp4netns**: Use the slirp4netns port forwarding, it is slower than rootlesskit but preserves the correct source IP address. This port handler cannot be used for user-defined networks.
-#### **--no-hosts**
+@@option no-hosts
-Do not create /etc/hosts for the pod.
-By default, Podman will manage /etc/hosts, adding the container's own IP address and any hosts from **--add-host**.
-**--no-hosts** disables this, and the image's **/etc/host** will be preserved unmodified.
This option conflicts with host added in the Kubernetes YAML.
#### **--quiet**, **-q**
diff --git a/docs/source/markdown/podman-pod-clone.1.md.in b/docs/source/markdown/podman-pod-clone.1.md.in
index ea8189a7a..a5746fd84 100644
--- a/docs/source/markdown/podman-pod-clone.1.md.in
+++ b/docs/source/markdown/podman-pod-clone.1.md.in
@@ -15,63 +15,19 @@ podman\-pod\-clone - Creates a copy of an existing pod
@@option blkio-weight-device
-#### **--cgroup-parent**=*path*
+@@option cgroup-parent
-Path to cgroups under which the cgroup for the pod will be created. If the path is not absolute, the path is considered to be relative to the cgroups path of the init process. Cgroups will be created if they do not already exist.
-
-#### **--cpu-shares**, **-c**=*shares*
-
-CPU shares (relative weight)
-
-By default, all containers get the same proportion of CPU cycles. This proportion
-can be modified by changing the container's CPU share weighting relative
-to the weighting of all other running containers.
-
-To modify the proportion from the default of 1024, use the **--cpu-shares**
-flag to set the weighting to 2 or higher.
-
-The proportion will only apply when CPU-intensive processes are running.
-When tasks in one container are idle, other containers can use the
-left-over CPU time. The actual amount of CPU time will vary depending on
-the number of containers running on the system.
-
-For example, consider three containers, one has a cpu-share of 1024 and
-two others have a cpu-share setting of 512. When processes in all three
-containers attempt to use 100% of CPU, the first container would receive
-50% of the total CPU time. If you add a fourth container with a cpu-share
-of 1024, the first container only gets 33% of the CPU. The remaining containers
-receive 16.5%, 16.5% and 33% of the CPU.
-
-On a multi-core system, the shares of CPU time are distributed over all CPU
-cores. Even if a container is limited to less than 100% of CPU time, it can
-use 100% of each individual CPU core.
-
-For example, consider a system with more than three cores. If you start one
-container **{C0}** with **-c=512** running one process, and another container
-**{C1}** with **-c=1024** running two processes, this can result in the following
-division of CPU shares:
-
-PID container CPU CPU share
-100 {C0} 0 100% of CPU0
-101 {C1} 1 100% of CPU1
-102 {C1} 2 100% of CPU2
+@@option cpu-shares
#### **--cpus**
Set a number of CPUs for the pod that overrides the original pods CPU limits. If none are specified, the original pod's Nano CPUs are used.
-#### **--cpuset-cpus**
-
-CPUs in which to allow execution (0-3, 0,1). If none are specified, the original pod's CPUset is used.
-
-
-#### **--cpuset-mems**=*nodes*
+@@option cpuset-cpus
-Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.
+If none are specified, the original pod's CPUset is used.
-If there are four memory nodes on the system (0-3), use `--cpuset-mems=0,1`
-then processes in the container will only use memory from the first
-two memory nodes.
+@@option cpuset-mems
@@option destroy
diff --git a/docs/source/markdown/podman-pod-create.1.md.in b/docs/source/markdown/podman-pod-create.1.md.in
index d73a4b9e7..73b634548 100644
--- a/docs/source/markdown/podman-pod-create.1.md.in
+++ b/docs/source/markdown/podman-pod-create.1.md.in
@@ -28,81 +28,25 @@ which by default, is the cgroup parent for all containers joining the pod. Conta
## OPTIONS
-#### **--add-host**=*host:ip*
+@@option add-host
-Add a custom host-to-IP mapping (host:ip)
-
-Add a line to /etc/hosts. The format is hostname:ip. The **--add-host**
-option can be set multiple times.
The /etc/hosts file is shared between all containers in the pod.
@@option blkio-weight
@@option blkio-weight-device
-#### **--cgroup-parent**=*path*
-
-Path to cgroups under which the cgroup for the pod will be created. If the path is not absolute, the path is considered to be relative to the cgroups path of the init process. Cgroups will be created if they do not already exist.
-
-#### **--cpu-shares**, **-c**=*shares*
-
-CPU shares (relative weight)
-
-By default, all containers get the same proportion of CPU cycles. This proportion
-can be modified by changing the container's CPU share weighting relative
-to the weighting of all other running containers.
-
-To modify the proportion from the default of 1024, use the **--cpu-shares**
-flag to set the weighting to 2 or higher.
-
-The proportion will only apply when CPU-intensive processes are running.
-When tasks in one container are idle, other containers can use the
-left-over CPU time. The actual amount of CPU time will vary depending on
-the number of containers running on the system.
-
-For example, consider three containers, one has a cpu-share of 1024 and
-two others have a cpu-share setting of 512. When processes in all three
-containers attempt to use 100% of CPU, the first container would receive
-50% of the total CPU time. If you add a fourth container with a cpu-share
-of 1024, the first container only gets 33% of the CPU. The remaining containers
-receive 16.5%, 16.5% and 33% of the CPU.
+@@option cgroup-parent
-On a multi-core system, the shares of CPU time are distributed over all CPU
-cores. Even if a container is limited to less than 100% of CPU time, it can
-use 100% of each individual CPU core.
-
-For example, consider a system with more than three cores. If you start one
-container **{C0}** with **-c=512** running one process, and another container
-**{C1}** with **-c=1024** running two processes, this can result in the following
-division of CPU shares:
-
-PID container CPU CPU share
-100 {C0} 0 100% of CPU0
-101 {C1} 1 100% of CPU1
-102 {C1} 2 100% of CPU2
+@@option cpu-shares
#### **--cpus**=*amount*
Set the total number of CPUs delegated to the pod. Default is 0.000 which indicates that there is no limit on computation power.
-#### **--cpuset-cpus**=*amount*
-
-Limit the CPUs to support execution. First CPU is numbered 0. Unlike --cpus this is of type string and parsed as a list of numbers
-
-Format is 0-3,0,1
-
-Examples of the List Format:
-
-0-4,9 # bits 0, 1, 2, 3, 4, and 9 set
-0-2,7,12-14 # bits 0, 1, 2, 7, 12, 13, and 14 set
-
-#### **--cpuset-mems**=*nodes*
-
-Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems.
+@@option cpuset-cpus
-If there are four memory nodes on the system (0-3), use `--cpuset-mems=0,1`
-then processes in the container will only use memory from the first
-two memory nodes.
+@@option cpuset-mems
#### **--device**=_host-device_[**:**_container-device_][**:**_permissions_]
@@ -260,11 +204,8 @@ Valid _mode_ values are:
@@option network-alias
-#### **--no-hosts**
+@@option no-hosts
-Do not create _/etc/hosts_ for the pod.
-By default, Podman will manage _/etc/hosts_, adding the container's own IP address and any hosts from **--add-host**.
-**--no-hosts** disables this, and the image's _/etc/hosts_ will be preserved unmodified.
This option conflicts with **--add-host**.
@@option pid.pod
diff --git a/docs/source/markdown/podman-run.1.md.in b/docs/source/markdown/podman-run.1.md.in
index ce552baf6..21ce566ce 100644
--- a/docs/source/markdown/podman-run.1.md.in
+++ b/docs/source/markdown/podman-run.1.md.in
@@ -83,12 +83,7 @@ and specified with a _tag_.
$ podman run oci-archive:/tmp/fedora echo hello
## OPTIONS
-#### **--add-host**=*host:ip*
-
-Add a custom host-to-IP mapping (host:ip)
-
-Add a line to /etc/hosts. The format is hostname:ip. The **--add-host**
-option can be set multiple times.
+@@option add-host
#### **--annotation**=*key=value*
@@ -126,31 +121,11 @@ environment variable.
@@option cgroup-conf
-#### **--cgroup-parent**=*path*
-
-Path to cgroups under which the cgroup for the container will be created. If the path is not absolute, the path is considered to be relative to the cgroups path of the init process. Cgroups will be created if they do not already exist.
-
-#### **--cgroupns**=*mode*
-
-Set the cgroup namespace mode for the container.
+@@option cgroup-parent
-- **host**: use the host's cgroup namespace inside the container.
-- **container:**_id_: join the namespace of the specified container.
-- **private**: create a new cgroup namespace.
-- **ns:**_path_: join the namespace at the specified path.
+@@option cgroupns
-If the host uses cgroups v1, the default is set to **host**. On cgroups v2, the default is **private**.
-
-#### **--cgroups**=*how*
-
-Determines whether the container will create CGroups.
-
-Default is **enabled**.
-
-The **enabled** option will create a new cgroup under the cgroup-parent.
-The **disabled** option will force the container to not create CGroups, and thus conflicts with CGroup options (**--cgroupns** and **--cgroup-parent**).
-The **no-conmon** option disables a new CGroup only for the **conmon** process.
-The **split** option splits the current CGroup in two sub-cgroups: one for conmon and one for the container payload. It is not possible to set **--cgroup-parent** with **split**.
+@@option cgroups
@@option chrootdirs
@@ -158,88 +133,17 @@ The **split** option splits the current CGroup in two sub-cgroups: one for conmo
Write the container ID to *file*.
-#### **--conmon-pidfile**=*file*
-
-Write the pid of the **conmon** process to a file. As **conmon** runs in a separate process than Podman, this is necessary when using systemd to restart Podman containers.
-(This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
-
-#### **--cpu-period**=*limit*
-
-Set the CPU period for the Completely Fair Scheduler (CFS), which is a
-duration in microseconds. Once the container's CPU quota is used up, it will
-not be scheduled to run until the current period ends. Defaults to 100000
-microseconds.
-
-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-cpu-limits-fails-with-a-permissions-error
-
-#### **--cpu-quota**=*limit*
-
-Limit the CPU Completely Fair Scheduler (CFS) quota.
-
-Limit the container's CPU usage. By default, containers run with the full
-CPU resource. The limit is a number in microseconds. If you provide a number,
-the container will be allowed to use that much CPU time until the CPU period
-ends (controllable via **--cpu-period**).
+@@option conmon-pidfile
-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-cpu-limits-fails-with-a-permissions-error
-
-#### **--cpu-rt-period**=*microseconds*
-
-Limit the CPU real-time period in microseconds.
-
-Limit the container's Real Time CPU usage. This flag tell the kernel to restrict the container's Real Time CPU usage to the period you specify.
-
-This flag is not supported on cgroups V2 systems.
-
-#### **--cpu-rt-runtime**=*microseconds*
-
-Limit the CPU real-time runtime in microseconds.
-
-Limit the containers Real Time CPU usage. This flag tells the kernel to limit the amount of time in a given CPU period Real Time tasks may consume. Ex:
-Period of 1,000,000us and Runtime of 950,000us means that this container could consume 95% of available CPU and leave the remaining 5% to normal priority tasks.
+@@option cpu-period
-The sum of all runtimes across containers cannot exceed the amount allotted to the parent cgroup.
+@@option cpu-quota
-This flag is not supported on cgroups V2 systems.
+@@option cpu-rt-period
-#### **--cpu-shares**, **-c**=*shares*
+@@option cpu-rt-runtime
-CPU shares (relative weight).
-
-By default, all containers get the same proportion of CPU cycles. This proportion
-can be modified by changing the container's CPU share weighting relative
-to the combined weight of all the running containers. Default weight is **1024**.
-
-The proportion will only apply when CPU-intensive processes are running.
-When tasks in one container are idle, other containers can use the
-left-over CPU time. The actual amount of CPU time will vary depending on
-the number of containers running on the system.
-
-For example, consider three containers, one has a cpu-share of 1024 and
-two others have a cpu-share setting of 512. When processes in all three
-containers attempt to use 100% of CPU, the first container would receive
-50% of the total CPU time. If you add a fourth container with a cpu-share
-of 1024, the first container only gets 33% of the CPU. The remaining containers
-receive 16.5%, 16.5% and 33% of the CPU.
-
-On a multi-core system, the shares of CPU time are distributed over all CPU
-cores. Even if a container is limited to less than 100% of CPU time, it can
-use 100% of each individual CPU core.
-
-For example, consider a system with more than three cores.
-If the container _C0_ is started with **--cpu-shares=512** running one process,
-and another container _C1_ with **--cpu-shares=1024** running two processes,
-this can result in the following division of CPU shares:
-
-| PID | container | CPU | CPU share |
-| ---- | ----------- | ------- | ------------ |
-| 100 | C0 | 0 | 100% of CPU0 |
-| 101 | C1 | 1 | 100% of CPU1 |
-| 102 | C1 | 2 | 100% of CPU2 |
+@@option cpu-shares
#### **--cpus**=*number*
@@ -251,18 +155,9 @@ 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-cpu-limits-fails-with-a-permissions-error
-#### **--cpuset-cpus**=*number*
-
-CPUs in which to allow execution. Can be specified as a comma-separated list
-(e.g. **0,1**), as a range (e.g. **0-3**), or any combination thereof
-(e.g. **0-3,7,11-15**).
-
-#### **--cpuset-mems**=*nodes*
-
-Memory nodes (MEMs) in which to allow execution. Only effective on NUMA systems.
+@@option cpuset-cpus
-For example, if you have four memory nodes (0-3) on your system, use **--cpuset-mems=0,1**
-to only use memory from the first two memory nodes.
+@@option cpuset-mems
#### **--detach**, **-d**
@@ -569,11 +464,8 @@ Valid _mode_ values are:
@@option no-healthcheck
-#### **--no-hosts**
+@@option no-hosts
-Do not create _/etc/hosts_ for the container.
-By default, Podman will manage _/etc/hosts_, adding the container's own IP address and any hosts from **--add-host**.
-**--no-hosts** disables this, and the image's _/etc/hosts_ will be preserved unmodified.
This option conflicts with **--add-host**.
@@option oom-kill-disable
diff --git a/hack/markdown-preprocess b/hack/markdown-preprocess
index 0b66abb06..86667a32d 100755
--- a/hack/markdown-preprocess
+++ b/hack/markdown-preprocess
@@ -29,7 +29,7 @@ def process(infile):
# Some options are the same between containers and pods; determine
# which description to use from the name of the source man page.
pod_or_container = 'container'
- if '-pod-' in infile:
+ if '-pod-' in infile or '-kube-' in infile:
pod_or_container = 'pod'
# Sometimes a man page includes the subcommand.
diff --git a/hack/markdown-preprocess-review b/hack/markdown-preprocess-review
index e8b042e94..a487265ad 100755
--- a/hack/markdown-preprocess-review
+++ b/hack/markdown-preprocess-review
@@ -26,7 +26,7 @@ while (my $line = <$git_diff>) {
if ($line =~ s/^-####\s+//) {
$line =~ /^\*\*--(\S+?)\*\*/
or die "$ME: in $newname: weird '$line'";
- $changed{$newname}{$1}{name} = $1;
+ $changed{$newname}{$1}{name} //= $1;
}
# Usually the same, but not for host.container and host.pod.md
elsif ($line =~ /^\+\@\@option\s+(\S+)/) {
@@ -86,7 +86,7 @@ for my $md_file (sort keys %changed) {
or die "$ME: Error writing $outfile: $!\n";
my $new_text = "$DSM/options/$changed{$md_file}{$opt}{name}.md";
- die "$ME: File does not exist: $new_text\n" if ! -e $new_text;
+ die "$ME: $md_file: File does not exist: $new_text\n" if ! -e $new_text;
system('cp', $new_text, "$d/zzz-chosen.md");
}
}