github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/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 will return an exit code
    12  of `0` when the network is found.  A `1` will be 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 a network called `net1` exists (the network does actually exist).
    25  ```
    26  $ podman network exists net1
    27  $ echo $?
    28  0
    29  $
    30  ```
    31  
    32  Check if a network called `webbackend` exists (the network does not actually exist).
    33  ```
    34  $ podman network exists webbackend
    35  $ echo $?
    36  1
    37  $
    38  ```
    39  
    40  ## SEE ALSO
    41  **[podman(1)](podman.1.md)**, **[podman-network(1)](podman-network.1.md)**
    42  
    43  ## HISTORY
    44  January 2021, Originally compiled by Paul Holzinger `<paul.holzinger@web.de>`