mirror of
https://github.com/containers/podman.git
synced 2025-10-27 19:34:13 +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>
14 lines
591 B
Markdown
14 lines
591 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.
|
|
#### **--secret**=**id=id,src=path**
|
|
|
|
Pass secret information used in the Containerfile for building images
|
|
in a safe way that are not stored in the final image, or be seen in other stages.
|
|
The secret is mounted in the container at the default location of `/run/secrets/id`.
|
|
|
|
To later use the secret, use the --mount option in a `RUN` instruction within a `Containerfile`:
|
|
|
|
`RUN --mount=type=secret,id=mysecret cat /run/secrets/mysecret`
|