podman-network-exists(1)
β¨ podman-network-exists(1) β¨
okay bestie, welcome to the General Commands Manual entry for podman-network-exists β yes it's a whole manual page for the tiniest little question ever, and honestly? iconic. π
πΈ NAME πΈ
podman-network-exists β check if the given network exists π¦
π SYNOPSIS π
podman network exists network
β¨ DESCRIPTION β¨
so podman network exists does exactly one thing and does it flawlessly: it checks if a network exists. main character energy, no notes. π
you can hand it either the Name or the ID of the network as input β both work, pick your fighter.
here's the tea on the exit codes, and you're gonna wanna remember these fr fr:
- Podman returns an exit code of
0when the network is found π - A
1is returned otherwise π - An exit code of
125indicates there was another issue π
no cap, 125 means something else went sideways β it's not a "nope, doesn't exist", it's a "girl, something else broke". don't get it twisted.
π OPTIONS π
--help,-hβ print usage statement. she's helpful like that π«Ά
π EXAMPLE π
Check if specified network exists (the network does actually exist):
$ podman network exists net1
$ echo $?
0
see that 0? that's the slay. β
Check if nonexistent network exists:
$ podman network exists webbackend
$ echo $?
1
and that 1? that's the "not me finding out it's not there" π
π SEE ALSO π
π HISTORY π
January 2021, Originally compiled by Paul Holzinger <paul.holzinger@web.de> β thank you king, we stan a documentation legend β
anyway that's the whole page, and yes, the footer at the very bottom just says podman-network-exists(1) again, like a little signature at the end of a love letter π from the General Commands Manual, dating allll the way back to January 2021. periodt. πβ¨π
π¦ where this page comes from
- arch rolling: podman-docker 6.1.4-1 Β· Apache-2.0
- fedora 43: podman-docker 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-docker 5:5.8.4-1.fc43
- fedora 43: podman-docker 5:5.8.8-1.fc43
- fedora 43: podman-docker 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-docker 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-docker 5:5.8.7-1.fc44
- fedora 44: podman-docker 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
- ubuntu resolute: podman-docker 5.7.0+ds2-3build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms