docker-secret-exists1
Check if the given secret exists
Part of podman-secret-exists(1).
Usage
podman secret
exists
secret
Overview
podman secret exists checks if a secret exists. Podman returns an exit code of 0 when the secret is found. A 1 is returned otherwise. An exit code of 125 indicates there was another issue.
Options
--help, -h
Print usage statement
Examples
Check if a secret called mysecret exists (the secret does actually exist).
$ podman secret exists mysecret $ echo $? 0 $
Check if a secret called mypassword exists (the secret does not actually exist).
$ podman secret exists mypassword $ echo $? 1 $
History
- Arch Linux 2026-11-01: the text shown here
- Debian 13 (Trixie)