mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
docs: userguide: add container labels section
Signed-off-by: Antonio Murdaca <runcom@linux.com>
This commit is contained in:
parent
acdc0f82c0
commit
124540c086
1 changed files with 13 additions and 1 deletions
|
@ -161,8 +161,20 @@ List all images with `vendor` `ACME`:
|
||||||
$ docker images --filter "label=vendor=ACME"
|
$ docker images --filter "label=vendor=ACME"
|
||||||
|
|
||||||
|
|
||||||
## Daemon labels
|
## Container labels
|
||||||
|
|
||||||
|
docker run \
|
||||||
|
-d \
|
||||||
|
--label com.example.group="webservers" \
|
||||||
|
--label com.example.environment="production" \
|
||||||
|
busybox \
|
||||||
|
top
|
||||||
|
|
||||||
|
Please refer to the [Query labels](#query-labels) section above for information
|
||||||
|
on how to query labels set on a container.
|
||||||
|
|
||||||
|
|
||||||
|
## Daemon labels
|
||||||
|
|
||||||
docker daemon \
|
docker daemon \
|
||||||
--dns 8.8.8.8 \
|
--dns 8.8.8.8 \
|
||||||
|
|
Loading…
Add table
Reference in a new issue