1podman-secret-exists(1) General Commands Manual podman-secret-exists(1)
2
3
4
6 podman-secret-exists - Check if the given secret exists
7
8
10 podman secret exists secret
11
12
14 podman secret exists checks if a secret exists. Podman returns an exit
15 code of 0 when the secret is found. A 1 is returned otherwise. An exit
16 code of 125 indicates there was another issue.
17
18
20 --help, -h
21 Print usage statement
22
23
25 Check if a secret called mysecret exists (the secret does actually ex‐
26 ist).
27
28 $ podman secret exists mysecret
29 $ echo $?
30 0
31 $
32
33
34
35 Check if a secret called mypassword exists (the secret does not actu‐
36 ally exist).
37
38 $ podman secret exists mypassword
39 $ echo $?
40 1
41 $
42
43
44
46 podman(1), podman-secret(1)
47
48
50 April 2023, Originally compiled by Ygal Blum <ygal.blum@gmail.com>
51
52
53
54 podman-secret-exists(1)