podman-network-exists(1)

πŸ“¦
version 6.1.4 Β· 5 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

✨ 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 0 when the network is found πŸŽ‰
  • A 1 is returned otherwise 😭
  • An exit code of 125 indicates 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