mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-14 04:39:33 +00:00
This commit does the following: - Splits the podman-systemd.unit.5.md into multiple files - one for each quadlet file type. - Adds the podman-quadlet-basic-usage.7.md for quadlet examples. - Majority of the text in the new files is copied from the podman-systemd.unit.5.md - Adds support for very simple condditional in the markdown_preprocess. - Uses new logic in markdown_preprocess in options/*.md to use a single .md file for both podman subcommands man-pages and quadlet man-pages. This deduplicates the Quadlet man-pages a lot. - Adds new `@@option quadlet:source.md`` preprocess command to import such .md files from options directory. Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
32 lines
1.2 KiB
Markdown
32 lines
1.2 KiB
Markdown
####> This option file is used in:
|
|
####> podman podman-container.unit.5.md.in, create, run, update
|
|
####> If file is edited, make sure the changes
|
|
####> are applicable to all of those.
|
|
<< if is_quadlet >>
|
|
### `Ulimit=option`
|
|
<< else >>
|
|
#### **--ulimit**=*option*
|
|
<< endif >>
|
|
|
|
Ulimit options. Sets the ulimits values inside of the container.
|
|
|
|
--ulimit with a soft and hard limit in the format <type>=<soft limit>[:<hard limit>]. For example:
|
|
|
|
$ podman run --ulimit nofile=1024:1024 --rm ubi9 ulimit -n
|
|
1024
|
|
|
|
Set -1 for the soft or hard limit to set the limit to the maximum limit of the current
|
|
process. In rootful mode this is often unlimited.
|
|
|
|
|
|
If nofile and nproc are unset, a default value of 1048576 will be used, unless overridden
|
|
in containers.conf(5). However, if the default value exceeds the hard limit for the current
|
|
rootless user, the current hard limit will be applied instead.
|
|
|
|
Use **host** to copy the current configuration from the host.
|
|
|
|
Don't use nproc with the ulimit flag as Linux uses nproc to set the
|
|
maximum number of processes available to a user, not to a container.
|
|
|
|
Use the --pids-limit option to modify the cgroup control to limit the number
|
|
of processes within a container.
|