From 124540c08603f1eda956f16e2eef2f42d3b3e80f Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Mon, 21 Sep 2015 14:41:14 +0200 Subject: [PATCH] docs: userguide: add container labels section Signed-off-by: Antonio Murdaca --- docs/userguide/labels-custom-metadata.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/userguide/labels-custom-metadata.md b/docs/userguide/labels-custom-metadata.md index 6be4aebc9f..122b87cc59 100644 --- a/docs/userguide/labels-custom-metadata.md +++ b/docs/userguide/labels-custom-metadata.md @@ -161,8 +161,20 @@ List all images with `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 \ --dns 8.8.8.8 \