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

NAME

6       podman-secret-exists - Check if the given secret exists
7
8

SYNOPSIS

10       podman secret exists secret
11
12

DESCRIPTION

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

OPTIONS

20   --help, -h
21       Print usage statement
22
23

EXAMPLE

25       Check  if a secret called mysecret exists (the secret does actually ex‐
26       ist).
27
28
29              $ podman secret exists mysecret
30              $ echo $?
31              0
32              $
33
34
35
36       Check if a secret called mypassword exists (the secret does  not  actu‐
37       ally exist).
38
39
40              $ podman secret exists mypassword
41              $ echo $?
42              1
43              $
44
45
46

SEE ALSO

48       podman(1), podman-secret(1)
49
50

HISTORY

52       April 2023, Originally compiled by Ygal Blum <ygal.blum@gmail.com>
53
54
55
56                                                       podman-secret-exists(1)
Impressum