podman-container-exists(1)
π podman-container-exists(1) β the "does my container even exist tho" check π
okay bestie, so this one lives in the General Commands Manual section, and it's literally the most low-stakes, high-value little command. sit down, we're doing a vibe check on your local storage. β¨
πΈ NAME πΈ
podman-container-exists β check if a container exists in local storage. that's it. that's the whole job. π
π¦ SYNOPSIS π¦
podman container exists [options] container
β¨ DESCRIPTION β¨
so here's the tea: podman container exists checks if a container exists in local storage. you feed it a container ID or a name, and it goes looking. π
the way it talks back to you is through exit codes, iykyk:
0β found it, slay, the container is there π1β nope, not found125β uh oh, there was an issue accessing the local storage π
fr fr, exit codes are the whole language here. no cute output message, just a number. read it and weep (or celebrate).
π OPTIONS π
--externalβ check for external containers as well as Podman containers. these external containers are generally created via other container technology, like Buildah or CRI-O. the default isfalse. π-h,--helpβ prints the usage statement. the default isfalse. π«Ά
π EXAMPLES π
1. check if a container called webclient exists in local storage. here, the container does exist. π
$ podman container exists webclient
$ echo $?
0
2. check if a container called webbackend exists in local storage. here, the container does not exist. π
$ podman container exists webbackend
$ echo $?
1
3. check if a container called ubi8-working-container, created via Buildah, exists in local storage. here, the container does not exist. π
$ podman container exists --external ubi8-working-container
$ echo $?
1
π SEE ALSO π
π HISTORY π
November 2018 β originally compiled by Brent Baude bbaude@redhat.com β¨mailto:bbaude@redhat.comβ©. iconic behavior, honestly. π
okay that's the whole page bestie, thanks for coming to my ted talk. this was podman-container-exists(1) from the General Commands Manual, and it's been giving November 2018 energy since, well, November 2018. π¦ bye pookie, go check if your containers exist πβ¨
π¦ where this page comes from
- alpine 3.24: podman-doc 5.8.9-r0 Β· Apache-2.0
- arch rolling: podman 6.1.4-1 Β· Apache-2.0
- centos-stream 10: podman 7:6.1.0-2.el10 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- centos-stream 9: podman 6:5.8.5-2.el9 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman 5:5.6.2-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman 5:5.8.4-1.fc43
- fedora 43: podman 5:5.8.8-1.fc43
- fedora 43: podman 5:5.8.9-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman 5:5.8.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman 5:5.8.7-1.fc44
- fedora 44: podman 5:5.8.9-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- nixos 26.05: podman 5.8.9
- nixpkgs unstable: podman 6.1.4
- opensuse-leap 16.0: podman 5.4.2-160000.6.1 Β· Apache-2.0
- opensuse-leap 16.0: podman 5.4.2-160000.6.1 Β· Apache-2.0
- opensuse-leap 16.0: podman 5.4.2-160000.6.1 Β· Apache-2.0
- opensuse-leap 16.0: podman 5.4.2-160000.6.1 Β· Apache-2.0
- ubuntu resolute: podman 5.7.0+ds2-3build1 Β· Apache-2.0
- ubuntu stonking: podman 5.8.6+ds1-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms