1podman-secret-create(1)     General Commands Manual    podman-secret-create(1)
2
3
4

NAME

6       podman-secret-create - Create a new secret
7
8

SYNOPSIS

10       podman secret create [options] name file|-
11
12

DESCRIPTION

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

OPTIONS

33   --driver, -d=driver
34       Specify the secret driver (default file, which is unencrypted).
35
36
37   --driver-opts=key1=val1,key2=val2
38       Specify driver specific options.
39
40
41   --env=false
42       Read secret data from environment variable.
43
44
45   --help
46       Print usage statement.
47
48
49   --label, -l=key=val1,key2=val2
50       Add  label  to secret. These labels can be viewed in podman secrete in‐
51       spect or ls.
52
53

EXAMPLES

55              $ podman secret create my_secret ./secret.json
56              $ podman secret create --driver=file my_secret ./secret.json
57              $ printf <secret> | podman secret create my_secret -
58
59
60

SEE ALSO

62       podman(1), podman-secret(1)
63
64

HISTORY

66       January  2021,  Originally  compiled  by  Ashley  Cui   acui@redhat.com
67       ⟨mailto:acui@redhat.com⟩
68
69
70
71                                                       podman-secret-create(1)
Impressum