podman volume exists

Add podman volume exists command with remote support.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
Paul Holzinger
2021-01-19 23:03:51 +01:00
parent 7d024a2fc8
commit 9d31fed5f7
14 changed files with 307 additions and 2 deletions

View File

@ -10,7 +10,7 @@ podman\-network\-exists - Check if the given network exists
**podman network exists** checks if a network exists. The **Name** or **ID**
of the network may be used as input. Podman will return an exit code
of `0` when the network is found. A `1` will be returned otherwise. An exit code of
`125` indicates there was an other issue.
`125` indicates there was another issue.
## OPTIONS
@ -41,4 +41,4 @@ $
podman(1), podman-network-create(1), podman-network-rm(1)
## HISTORY
January 2021, Originally compiled by Paul Holzinger <paul.holzinger@web.de>
January 2021, Originally compiled by Paul Holzinger `<paul.holzinger@web.de>`

View File

@ -0,0 +1,43 @@
% podman-volume-exists(1)
## NAME
podman\-volume\-exists - Check if the given volume exists
## SYNOPSIS
**podman volume exists** *volume*
## DESCRIPTION
**podman volume exists** checks if a volume exists. Podman will return an exit code
of `0` when the volume is found. A `1` will be returned otherwise. An exit code of
`125` indicates there was another issue.
## OPTIONS
#### **--help**, **-h**
Print usage statement
## EXAMPLE
Check if a volume called `myvol` exists (the volume does actually exist).
```
$ podman volume exists myvol
$ echo $?
0
$
```
Check if an volume called `mysql` exists (the volume does not actually exist).
```
$ podman volume exists mysql
$ echo $?
1
$
```
## SEE ALSO
podman(1), podman-volume-create(1), podman-volume-rm(1)
## HISTORY
January 2021, Originally compiled by Paul Holzinger `<paul.holzinger@web.de>`

View File

@ -14,6 +14,7 @@ podman volume is a set of subcommands that manage volumes.
| Command | Man Page | Description |
| ------- | ------------------------------------------------------ | ------------------------------------------------------------------------------ |
| create | [podman-volume-create(1)](podman-volume-create.1.md) | Create a new volume. |
| exists | [podman-volume-exists(1)](podman-volume-exists.1.md) | Check if the given volume exists. |
| inspect | [podman-volume-inspect(1)](podman-volume-inspect.1.md) | Get detailed information on one or more volumes. |
| ls | [podman-volume-ls(1)](podman-volume-ls.1.md) | List all the available volumes. |
| prune | [podman-volume-prune(1)](podman-volume-prune.1.md) | Remove all unused volumes. |

View File

@ -2,6 +2,8 @@ Volume
======
:doc:`create <markdown/podman-volume-create.1>` Create a new volume
:doc:`exists <markdown/podman-volume-exists.1>` Check if the given volume exists
:doc:`inspect <markdown/podman-volume-inspect.1>` Display detailed information on one or more volumes
:doc:`ls <markdown/podman-volume-ls.1>` List volumes