mirror of
https://github.com/containers/podman.git
synced 2025-06-01 09:06:44 +08:00

Move the options for the podman build doc to a common md that can be used by both podman build and podman farm build. Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
19 lines
846 B
Markdown
19 lines
846 B
Markdown
####> This option file is used in:
|
|
####> podman build, farm build
|
|
####> If file is edited, make sure the changes
|
|
####> are applicable to all of those.
|
|
#### **--label**=*label*
|
|
|
|
Add an image *label* (e.g. label=*value*) to the image metadata. Can be used
|
|
multiple times.
|
|
|
|
Users can set a special LABEL **io.containers.capabilities=CAP1,CAP2,CAP3** in
|
|
a Containerfile that specifies the list of Linux capabilities required for the
|
|
container to run properly. This label specified in a container image tells
|
|
Podman to run the container with just these capabilities. Podman launches the
|
|
container with just the specified capabilities, as long as this list of
|
|
capabilities is a subset of the default list.
|
|
|
|
If the specified capabilities are not in the default set, Podman prints an error
|
|
message and runs the container with the default capabilities.
|