-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI:DOCS] Refactor common options in man pages #15174
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
podman-create.1.md | ||
podman-run.1.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#### **--cgroup-conf**=*KEY=VALUE* | ||
|
||
When running on cgroup v2, specify the cgroup file to write to and its value. For example **--cgroup-conf=memory.high=1073741824** sets the memory.high limit to 1GB. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#### **--chrootdirs**=*path* | ||
|
||
Path to a directory inside the container that should be treated as a `chroot` directory. | ||
Any Podman managed file (e.g., /etc/resolv.conf, /etc/hosts, etc/hostname) that is mounted into the root directory will be mounted into that location as well. | ||
Multiple directories should be separated with a comma. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#### **--env-host** | ||
|
||
Use host environment inside of the container. See **Environment** note below for precedence. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#### **--group-add**=*group* | *keep-groups* | ||
|
||
Assign additional groups to the primary user running within the container process. | ||
|
||
- `keep-groups` is a special flag that tells Podman to keep the supplementary group access. | ||
|
||
Allows container to use the user's supplementary group access. If file systems or | ||
devices are only accessible by the rootless user's group, this flag tells the OCI | ||
runtime to pass the group access into the container. Currently only available | ||
with the `crun` OCI runtime. Note: `keep-groups` is exclusive, you cannot add any other groups | ||
with this flag. (Not available for remote commands, including Mac and Windows (excluding WSL2) machines) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#### **--hostuser**=*name* | ||
|
||
Add a user account to /etc/passwd from the host to the container. The Username | ||
or UID must exist on the host system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#### **--image-volume**=**bind** | *tmpfs* | *ignore* | ||
|
||
Tells Podman how to handle the builtin image volumes. Default is **bind**. | ||
|
||
- **bind**: An anonymous named volume will be created and mounted into the container. | ||
- **tmpfs**: The volume is mounted onto the container as a tmpfs, which allows the users to create | ||
content that disappears when the container is stopped. | ||
- **ignore**: All volumes are just ignored and no action is taken. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#### **--init-path**=*path* | ||
|
||
Path to the container-init binary. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#### **--init** | ||
|
||
Run an init inside the container that forwards signals and reaps processes. | ||
The container-init binary is mounted at `/run/podman-init`. | ||
Mounting over `/run` will hence break container execution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#### **--mount**=*type=TYPE,TYPE-SPECIFIC-OPTION[,...]* | ||
|
||
Attach a filesystem mount to the container | ||
|
||
Current supported mount TYPEs are **bind**, **volume**, **image**, **tmpfs** and **devpts**. <sup>[[1]](#Footnote1)</sup> | ||
|
||
e.g. | ||
|
||
type=bind,source=/path/on/host,destination=/path/in/container | ||
|
||
type=bind,src=/path/on/host,dst=/path/in/container,relabel=shared | ||
|
||
type=bind,src=/path/on/host,dst=/path/in/container,relabel=shared,U=true | ||
|
||
type=volume,source=vol1,destination=/path/in/container,ro=true | ||
|
||
type=tmpfs,tmpfs-size=512M,destination=/path/in/container | ||
|
||
type=image,source=fedora,destination=/fedora-image,rw=true | ||
|
||
type=devpts,destination=/dev/pts | ||
|
||
Common Options: | ||
|
||
· src, source: mount source spec for bind and volume. Mandatory for bind. | ||
|
||
· dst, destination, target: mount destination spec. | ||
|
||
Options specific to volume: | ||
|
||
· ro, readonly: true or false (default). | ||
|
||
. U, chown: true or false (default). Change recursively the owner and group of the source volume based on the UID and GID of the container. | ||
|
||
· idmap: true or false (default). If specified, create an idmapped mount to the target user namespace in the container. | ||
|
||
Options specific to image: | ||
|
||
· rw, readwrite: true or false (default). | ||
|
||
Options specific to bind: | ||
|
||
· ro, readonly: true or false (default). | ||
|
||
· bind-propagation: shared, slave, private, unbindable, rshared, rslave, runbindable, or rprivate(default). See also mount(2). | ||
|
||
. bind-nonrecursive: do not set up a recursive bind mount. By default it is recursive. | ||
|
||
. relabel: shared, private. | ||
|
||
· idmap: true or false (default). If specified, create an idmapped mount to the target user namespace in the container. | ||
|
||
. U, chown: true or false (default). Change recursively the owner and group of the source volume based on the UID and GID of the container. | ||
|
||
Options specific to tmpfs: | ||
|
||
· ro, readonly: true or false (default). | ||
|
||
· tmpfs-size: Size of the tmpfs mount in bytes. Unlimited by default in Linux. | ||
|
||
· tmpfs-mode: File mode of the tmpfs in octal. (e.g. 700 or 0700.) Defaults to 1777 in Linux. | ||
|
||
· tmpcopyup: Enable copyup from the image directory at the same location to the tmpfs. Used by default. | ||
|
||
· notmpcopyup: Disable copying files from the image to the tmpfs. | ||
|
||
. U, chown: true or false (default). Change recursively the owner and group of the source volume based on the UID and GID of the container. | ||
|
||
Options specific to devpts: | ||
|
||
· uid: UID of the file owner (default 0). | ||
|
||
· gid: GID of the file owner (default 0). | ||
|
||
· mode: permission mask for the file (default 600). | ||
|
||
· max: maximum number of PTYs (default 1048576). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#### **--no-healthcheck** | ||
|
||
Disable any defined healthchecks for container. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#### **--oom-kill-disable** | ||
|
||
Whether to disable OOM Killer for the container or not. | ||
|
||
This flag is not supported on cgroups V2 systems. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#### **--passwd-entry**=*ENTRY* | ||
|
||
Customize the entry that is written to the `/etc/passwd` file within the container when `--passwd` is used. | ||
|
||
The variables $USERNAME, $UID, $GID, $NAME, $HOME are automatically replaced with their value at runtime. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#### **--personality**=*persona* | ||
|
||
Personality sets the execution domain via Linux personality(2). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#### **--pidfile**=*path* | ||
|
||
When the pidfile location is specified, the container process' PID will be written to the pidfile. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines) | ||
If the pidfile option is not specified, the container process' PID will be written to /run/containers/storage/${storage-driver}-containers/$CID/userdata/pidfile. | ||
|
||
After the container is started, the location for the pidfile can be discovered with the following `podman inspect` command: | ||
|
||
$ podman inspect --format '{{ .PidFile }}' $CID | ||
/run/containers/storage/${storage-driver}-containers/$CID/userdata/pidfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#### **--sdnotify**=**container** | *conmon* | *ignore* | ||
|
||
Determines how to use the NOTIFY_SOCKET, as passed with systemd and Type=notify. | ||
|
||
Default is **container**, which means allow the OCI runtime to proxy the socket into the | ||
container to receive ready notification. Podman will set the MAINPID to conmon's pid. | ||
The **conmon** option sets MAINPID to conmon's pid, and sends READY when the container | ||
has started. The socket is never passed to the runtime or the container. | ||
The **ignore** option removes NOTIFY_SOCKET from the environment for itself and child processes, | ||
for the case where some other process above Podman uses NOTIFY_SOCKET and Podman should not use it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#### **--seccomp-policy**=*policy* | ||
|
||
Specify the policy to select the seccomp profile. If set to *image*, Podman will look for a "io.containers.seccomp.profile" label in the container-image config and use its value as a seccomp profile. Otherwise, Podman will follow the *default* policy by applying the default profile unless specified otherwise via *--security-opt seccomp* as described below. | ||
|
||
Note that this feature is experimental and may change in the future. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#### **--timeout**=*seconds* | ||
|
||
Maximum time a container is allowed to run before conmon sends it the kill | ||
signal. By default containers will run until they exit or are stopped by | ||
`podman stop`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#### **--tz**=*timezone* | ||
|
||
Set timezone in container. This flag takes area-based timezones, GMT time, as well as `local`, which sets the timezone in the container to match the host machine. See `/usr/share/zoneinfo/` for valid timezones. | ||
Remote connections use local containers.conf for defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#### **--umask**=*umask* | ||
|
||
Set the umask inside the container. Defaults to `0022`. | ||
Remote connections use local containers.conf for defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#### **--unsetenv-all** | ||
|
||
Unset all default environment variables for the container. Default environment | ||
variables include variables provided natively by Podman, environment variables | ||
configured by the image, and environment variables from containers.conf. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completely unrelated to this PR, but I had to sleuth that incomprehensible mess (for an earlier
sed
-based iteration of this work) and never, ever want to do that again.