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

     1  % podman-pod-exists 1
     2  
     3  ## NAME
     4  podman-pod-exists - Check if a pod exists in local storage
     5  
     6  ## SYNOPSIS
     7  **podman pod exists** *pod*
     8  
     9  ## DESCRIPTION
    10  **podman pod exists** checks if a pod exists in local storage. The **ID** or **Name**
    11  of the pod may be used as input.  Podman returns an exit code
    12  of `0` when the pod is found.  A `1` is returned otherwise. An exit code of `125` indicates there
    13  was an issue accessing the local storage.
    14  
    15  ## EXAMPLES
    16  
    17  Check if specified pod exists in local storage (the pod does actually exist):
    18  ```
    19  $ sudo podman pod exists web; echo $?
    20  0
    21  ```
    22  
    23  Check if specified pod exists in local storage (the pod does not actually exist):
    24  ```
    25  $ sudo podman pod exists backend; echo $?
    26  1
    27  ```
    28  
    29  ## SEE ALSO
    30  **[podman(1)](podman.1.md)**, **[podman-pod(1)](podman-pod.1.md)**
    31  
    32  ## HISTORY
    33  December 2018, Originally compiled by Brent Baude (bbaude at redhat dot com)