github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/docs/source/markdown/podman-secret-create.1.md (about)

     1  % podman-secret-create(1)
     2  
     3  ## NAME
     4  podman\-secret\-create - Create a new secret
     5  
     6  ## SYNOPSIS
     7  **podman secret create** [*options*] *name* *file|-*
     8  
     9  ## DESCRIPTION
    10  
    11  Creates a secret using standard input or from a file for the secret content.
    12  
    13  Create accepts a path to a file, or `-`, which tells podman to read the secret from stdin
    14  
    15  A secret is a blob of sensitive data which a container needs at runtime but
    16  should not be stored in the image or in source control, such as usernames and passwords,
    17  TLS certificates and keys, SSH keys or other important generic strings or binary content (up to 500 kb in size).
    18  
    19  Secrets will not be committed to an image with `podman commit`, and will not be in the archive created by a `podman export`
    20  
    21  ## OPTIONS
    22  
    23  #### **--driver**=*driver*
    24  
    25  Specify the secret driver (default **file**, which is unencrypted).
    26  
    27  #### **--driver-opts**=*key1=val1,key2=val2*
    28  
    29  Specify driver specific options
    30  
    31  #### **--env**=*false*
    32  
    33  Read secret data from environment variable
    34  
    35  #### **--help**
    36  
    37  Print usage statement.
    38  
    39  ## EXAMPLES
    40  
    41  ```
    42  $ podman secret create my_secret ./secret.json
    43  $ podman secret create --driver=file my_secret ./secret.json
    44  $ printf <secret> | podman secret create my_secret -
    45  ```
    46  
    47  ## SEE ALSO
    48  **[podman(1)](podman.1.md)**, **[podman-secret(1)](podman-secret.1.md)**
    49  
    50  ## HISTORY
    51  January 2021, Originally compiled by Ashley Cui <acui@redhat.com>