podman-volume-exists(1)

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

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

okay bestie, welcome to the General Commands Manual corner of the podman-verse β€” this lil page is literally just one question: does ur volume exist or not. that's it. that's the whole vibe. πŸ¦‹


✨ NAME ✨

podman-volume-exists β€” check if the given volume exists


🌸 SYNOPSIS 🌸

podman volume exists volume

πŸ’… DESCRIPTION πŸ’…

so podman volume exists does exactly what it says on the tin β€” it checks if a volume exists. no cap. 🫢

here's the receipts on the exit codes, and bestie u gotta memorize these:

  • Podman returns an exit code of 0 when the volume is found.
  • A 1 is returned otherwise.
  • An exit code of 125 means there was another issue. (not the volume's fault, something else went sideways 😭)

πŸŽ€ OPTIONS πŸŽ€

  • --help, -h β€” print usage statement. the classic "wait what does this do again" button, iconic, we stan. ✨

🌈 EXAMPLE 🌈

first up: check if a volume called myvol exists β€” and plot twist, it does actually exist:

$ podman volume exists myvol
$ echo $?
0
$

and now: check if a volume called mysql exists β€” and nope, this one does not actually exist:

$ podman volume exists mysql
$ echo $?
1
$

see? 0 = she's here πŸ’–, 1 = she's not πŸ’€. simple as.


πŸ‘‘ SEE ALSO πŸ‘‘


🧚 HISTORY 🧚

January 2021, originally compiled by Paul Holzinger <paul.holzinger@web.de>


ok that's the whole page fr fr, nothing hidden, nothing skipped, main character energy all the way through 🌸

and for the cute sign-off: this lil masterpiece lives under podman-volume-exists(1) in the General Commands Manual, dated back to January 2021 β€” go forth and check ur volumes, bestie, u got this πŸ’œβœ¨

πŸ“¦ where this page comes from