From 424a544bb51af6013e218d67f87d27a85d46ca6d Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 30 Apr 2015 09:48:54 +0200 Subject: [PATCH] Fixing examples given for labels Fixes #12892 Signed-off-by: Vincent Demeester --- docs/sources/userguide/labels-custom-metadata.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/sources/userguide/labels-custom-metadata.md b/docs/sources/userguide/labels-custom-metadata.md index 792c2f505d..79ac42ebf4 100644 --- a/docs/sources/userguide/labels-custom-metadata.md +++ b/docs/sources/userguide/labels-custom-metadata.md @@ -129,10 +129,14 @@ You can view the labels via the `docker inspect` command: } ... - $ docker inspect -f "{{json .Labels }}" 4fa6e0f0c678 + # Inspect labels on container + $ docker inspect -f "{{json .Config.Labels }}" 4fa6e0f0c678 {"Vendor":"ACME Incorporated","com.example.is-beta":"","com.example.version":"0.0.1-beta","com.example.release-date":"2015-02-12"} + # Inspect labels on images + $ docker inspect -f "{{json .ContainerConfig.Labels }}" myimage + ## Query labels