Add podman volume create --ignore

This ignores the create request if the named volume already exists.
It is very useful when scripting stuff.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
This commit is contained in:
Alexander Larsson
2022-10-21 09:13:32 +02:00
parent a77ac5be83
commit 734c435e01
9 changed files with 78 additions and 12 deletions

View File

@@ -29,6 +29,10 @@ Such plugins must be defined in the **volume_plugins** section of the **[contain
Print usage statement
#### **--ignore**
Don't fail if the named volume already exists, instead just print the name. Note that the new options are not applied to the existing volume.
#### **--label**, **-l**=*label*
Set metadata for a volume (e.g., --label mykey=value).