Browse code

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 <anil@docker.com>
(cherry picked from commit c37da1792d232b5a8545227d5819bb245df16023)
Signed-off-by: Tibor Vass <tibor@docker.com>

Anil Madhavapeddy authored on 2016/07/15 01:38:37
Showing 1 changed files
... ...
@@ -172,7 +172,8 @@ node type label equals queue:
172 172
 ```bash
173 173
 $ docker service create \
174 174
   --name redis_2 \
175
-  --constraint node.labels.type == queue
175
+  --constraint 'node.labels.type == queue' \
176
+  redis:3.0.6
176 177
 ```
177 178
 
178 179
 ## Related information