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