mirror of
https://github.com/moby/moby.git
synced 2026-08-05 15:40:54 +00: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>
(cherry picked from commit c37da1792d)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
committed by
Tibor Vass
parent
e678d9fb7c
commit
12e32363e9
@@ -172,7 +172,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
|
||||
|
||||
Reference in New Issue
Block a user