carta
docker-secret-exists(1)

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)

History

April 2023, Originally compiled by Ygal Blum <[email protected]>

From podman-docker 6.1.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.