github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/options/secret.image.md (about)

     1  ####> This option file is used in:
     2  ####>   podman build, farm build
     3  ####> If file is edited, make sure the changes
     4  ####> are applicable to all of those.
     5  #### **--secret**=**id=id,src=path**
     6  
     7  Pass secret information used in the Containerfile for building images
     8  in a safe way that are not stored in the final image, or be seen in other stages.
     9  The secret is mounted in the container at the default location of `/run/secrets/id`.
    10  
    11  To later use the secret, use the --mount option in a `RUN` instruction within a `Containerfile`:
    12  
    13  `RUN --mount=type=secret,id=mysecret cat /run/secrets/mysecret`