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>
Upstream-commit: c37da1792d232b5a8545227d5819bb245df16023
Component: engine
This commit is contained in:
Anil Madhavapeddy
2016-07-14 17:38:37 +01:00
parent 8de09a35ce
commit 6179c27dae
@@ -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