.nh .TH podman-secret-create 1 .SH NAME .PP podman-secret-create - Create a new secret .SH SYNOPSIS .PP \fBpodman secret create\fP [\fIoptions\fP] \fIname\fP \fIfile|-\fP .SH DESCRIPTION .PP Creates a secret using standard input or from a file for the secret content. .PP Create accepts a path to a file, or \fB\fC-\fR, which tells podman to read the secret from stdin .PP A secret is a blob of sensitive data which a container needs at runtime but should not be stored in the image or in source control, such as usernames and passwords, TLS certificates and keys, SSH keys or other important generic strings or binary content (up to 500 kb in size). .PP Secrets will not be committed to an image with \fB\fCpodman commit\fR, and will not be in the archive created by a \fB\fCpodman export\fR .SH OPTIONS .SS \fB--driver\fP, \fB-d\fP=\fIdriver\fP .PP Specify the secret driver (default \fBfile\fP, which is unencrypted). .SS \fB--driver-opts\fP=\fIkey1=val1,key2=val2\fP .PP Specify driver specific options. .SS \fB--env\fP=\fIfalse\fP .PP Read secret data from environment variable. .SS \fB--help\fP .PP Print usage statement. .SS \fB--label\fP, \fB-l\fP=\fIkey=val1,key2=val2\fP .PP Add label to secret. These labels can be viewed in podman secrete inspect or ls. .SH EXAMPLES .PP .RS .nf $ podman secret create my_secret ./secret.json $ podman secret create --driver=file my_secret ./secret.json $ printf | podman secret create my_secret - .fi .RE .SH SEE ALSO .PP \fBpodman(1)\fP, \fBpodman-secret(1)\fP .SH HISTORY .PP January 2021, Originally compiled by Ashley Cui acui@redhat.com \[la]mailto:acui@redhat.com\[ra]