github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-secret-exists.1.md (about) 1 % podman-secret-exists 1 2 3 ## NAME 4 podman\-secret\-exists - Check if the given secret exists 5 6 ## SYNOPSIS 7 **podman secret exists** *secret* 8 9 ## DESCRIPTION 10 **podman secret exists** checks if a secret exists. Podman returns an exit code 11 of `0` when the secret is found. A `1` is returned otherwise. An exit code of 12 `125` indicates there was another issue. 13 14 15 ## OPTIONS 16 17 #### **--help**, **-h** 18 19 Print usage statement 20 21 ## EXAMPLE 22 23 Check if a secret called `mysecret` exists (the secret does actually exist). 24 ``` 25 $ podman secret exists mysecret 26 $ echo $? 27 0 28 $ 29 ``` 30 31 Check if a secret called `mypassword` exists (the secret does not actually exist). 32 ``` 33 $ podman secret exists mypassword 34 $ echo $? 35 1 36 $ 37 ``` 38 39 ## SEE ALSO 40 **[podman(1)](podman.1.md)**, **[podman-secret(1)](podman-secret.1.md)** 41 42 ## HISTORY 43 April 2023, Originally compiled by Ygal Blum `<ygal.blum@gmail.com>`