Fix documentation inconsistency about labels

Fixes #28120

Signed-off-by: Ivan Tkachenko <me@ratijas.me>
This commit is contained in:
Ivan Tkachenko
2026-02-20 16:04:39 +02:00
parent ec0f63c6e5
commit 4fae160fcf
3 changed files with 7 additions and 4 deletions

View File

@@ -104,7 +104,8 @@ Enable IPv6 (Dual Stack) networking. If no subnets are given, it allocates an ip
#### **--label**=*label*
Set metadata for a network (e.g., --label mykey=value).
Set metadata for the network (e.g., `--label mykey=value`). Can be used multiple times.
These labels can be viewed in `podman network inspect` or `podman network ls`.
#### **--opt**, **-o**=*option*

View File

@@ -44,9 +44,10 @@ If a secret with the same name already exists, do not return an error and return
Cannot be used with `--replace`.
The default is **false**.
#### **--label**, **-l**=*key=val1,key2=val2*
#### **--label**, **-l**=*label*
Add label to secret. These labels can be viewed in podman secrete inspect or ls.
Set metadata for the secret (e.g., `--label mykey=value`). Can be used multiple times.
These labels can be viewed in `podman secret inspect` or `podman secret ls`.
#### **--replace**=*false*

View File

@@ -42,7 +42,8 @@ Don't fail if the named volume already exists, instead just print the name. Note
#### **--label**, **-l**=*label*
Set metadata for a volume (e.g., --label mykey=value).
Set metadata for the volume (e.g., `--label mykey=value`). Can be used multiple times.
These labels can be viewed in `podman volume inspect` or `podman volume ls`.
#### **--opt**, **-o**=*option*