podman-pod-exists(1)

πŸ“¦
version 6.1.4 Β· 5 versions
, in arch rolling, fedora 43, fedora 44, ubuntu resolute

πŸ’… podman-pod-exists(1)

okay bestie, so this is a page from the General Commands Manual β€” it's podman-pod-exists, and it's about as low-stakes as a command gets, but it's SO useful for scripting, iykyk. ✨


🌸 NAME 🌸

podman-pod-exists β€” check if a pod exists in local storage 🫢


πŸŽ€ SYNOPSIS πŸŽ€

podman pod exists pod

✨ DESCRIPTION ✨

So like, podman pod exists checks if a pod exists in local storage. That's it. That's the whole job. πŸ‘‘

You can feed it either the ID or the Name of the pod β€” both work, no cap. Podman returns an exit code of 0 when the pod is found. A 1 is returned otherwise. And if you get an exit code of 125, that means there was an issue accessing the local storage. 😭

fr fr, memorize those three numbers β€” they're the entire vibe check of this command.

πŸ”₯ EXAMPLES πŸ”₯

Check if specified pod exists in local storage (the pod does actually exist):

$ sudo podman pod exists web; echo $?
0

Check if specified pod exists in local storage (the pod does not actually exist):

$ sudo podman pod exists backend; echo $?
1

πŸ¦‹ SEE ALSO πŸ¦‹


πŸ‘‘ HISTORY πŸ‘‘

December 2018, Originally compiled by Brent Baude (bbaude at redhat dot com)


okay that's the whole page bestie, go forth and check your pods πŸ’–

signing off from the General Commands Manual β€” it's podman-pod-exists(1), periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from