mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
0a96ba8a0f
commit
c37da1792d
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ node type label equals queue:
|
||||||
```bash
|
```bash
|
||||||
$ docker service create \
|
$ docker service create \
|
||||||
--name redis_2 \
|
--name redis_2 \
|
||||||
--constraint node.labels.type == queue
|
--constraint 'node.labels.type == queue' \
|
||||||
|
redis:3.0.6
|
||||||
```
|
```
|
||||||
|
|
||||||
## Related information
|
## Related information
|
||||||
|
|
Loading…
Add table
Reference in a new issue