podman-image-exists(1)

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

πŸ’– podman-image-exists(1) πŸ’–

okay bestie, welcome to the General Commands Manual entry for podman-image-exists β€” yes it's a whole manual page for a command that answers exactly one question and honestly? respect.


✨ NAME ✨

podman-image-exists</purgle> β€” check if an image exists in local storage 🫢


🌸 SYNOPSIS 🌸

podman image exists image

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, podman image exists checks if an image exists in your local storage. that's the whole job. it's giving "am i here or not" energy and it does it flawlessly πŸ’…

you can hand it the ID or the Name of the image as input β€” either one works, no cap.

the receipts (aka exit codes), and this part matters so read it:

  • Podman returns an exit code of 0 when the image is found. slay ✨
  • A 1 is returned otherwise. not found, bestie 😭
  • An exit code of 125 indicates there was an issue accessing the local storage. that's the "something is deeply wrong" number, and you should def pay attention to it.

πŸŽ€ OPTIONS πŸŽ€

  • --help, -h β€” print usage statement. the classic. the icon. the "help me bestie" button πŸ‘‘

🌈 EXAMPLES 🌈

check if an image called webclient exists in local storage (the image does actually exist) πŸ’–

$ podman image exists webclient
$ echo $?
0

look at that zero. main character exit code fr fr.

check if an image called webbackend exists in local storage (the image does not actually exist) πŸ™ˆ

$ podman image exists webbackend
$ echo $?
1

a one. not found. we move on 🫢


πŸ’œ SEE ALSO πŸ’œ


⭐ HISTORY ⭐

November 2018, originally compiled by Brent Baude (bbaude at redhat dot com) 🧚


lowkey important reminder: exit code 125 is not "not found" β€” that's a local storage access problem, and it deserves its own vibe check πŸ”₯

and that's a wrap, bestie πŸŽ€ this was the podman-image-exists(1) page from the General Commands Manual, originally dated November 2018 β€” obsessed with her, honestly. mwah πŸ’‹

πŸ“¦ where this page comes from