From 361e22d91a941daa28457e5fec74982c588ca6ad 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 Upstream-commit: 124540c08603f1eda956f16e2eef2f42d3b3e80f Component: engine --- .../docs/userguide/labels-custom-metadata.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/components/engine/docs/userguide/labels-custom-metadata.md b/components/engine/docs/userguide/labels-custom-metadata.md index 6be4aebc9f..122b87cc59 100644 --- a/components/engine/docs/userguide/labels-custom-metadata.md +++ b/components/engine/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 \