github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/podman-network-exists.1.md (about)

     1  % podman-network-exists 1
     2  
     3  ## NAME
     4  podman\-network\-exists - Check if the given network exists
     5  
     6  ## SYNOPSIS
     7  **podman network exists** *network*
     8  
     9  ## DESCRIPTION
    10  **podman network exists** checks if a network exists. The **Name** or **ID**
    11  of the network may be used as input.  Podman returns an exit code
    12  of `0` when the network is found.  A `1` is returned otherwise. An exit code of
    13  `125` indicates there was another issue.
    14  
    15  
    16  ## OPTIONS
    17  
    18  #### **--help**, **-h**
    19  
    20  Print usage statement
    21  
    22  ## EXAMPLE
    23  
    24  Check if specified network exists (the network does actually exist):
    25  ```
    26  $ podman network exists net1
    27  $ echo $?
    28  0
    29  ```
    30  
    31  Check if nonexistent network exists:
    32  ```
    33  $ podman network exists webbackend
    34  $ echo $?
    35  1
    36  ```
    37  
    38  ## SEE ALSO
    39  **[podman(1)](podman.1.md)**, **[podman-network(1)](podman-network.1.md)**
    40  
    41  ## HISTORY
    42  January 2021, Originally compiled by Paul Holzinger `<paul.holzinger@web.de>`