From c37da1792d232b5a8545227d5819bb245df16023 Mon Sep 17 00:00:00 2001 From: Anil Madhavapeddy Date: Thu, 14 Jul 2016 17:38:37 +0100 Subject: [PATCH] docs: correct the placement constraints `docker service` example - the constraint expression needs to be quoted - add an actual redis container to run so the command line works Signed-off-by: Anil Madhavapeddy --- docs/reference/commandline/service_create.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reference/commandline/service_create.md b/docs/reference/commandline/service_create.md index e69cc2e660..1bb1ea62fe 100644 --- a/docs/reference/commandline/service_create.md +++ b/docs/reference/commandline/service_create.md @@ -170,7 +170,8 @@ node type label equals queue: ```bash $ docker service create \ --name redis_2 \ - --constraint node.labels.type == queue + --constraint 'node.labels.type == queue' \ + redis:3.0.6 ``` ## Related information