docs: service create: document non-matching/exclude constraints
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
abeb7babdf
commit
b059c93c92
@ -667,7 +667,8 @@ $ docker service create \
|
|||||||
### Specify service constraints (--constraint)
|
### Specify service constraints (--constraint)
|
||||||
|
|
||||||
You can limit the set of nodes where a task can be scheduled by defining
|
You can limit the set of nodes where a task can be scheduled by defining
|
||||||
constraint expressions. Multiple constraints find nodes that satisfy every
|
constraint expressions. Constraint expressions can either use a _match_ (`==`)
|
||||||
|
or _exclude_ (`!=`) rule. Multiple constraints find nodes that satisfy every
|
||||||
expression (AND match). Constraints can match node or Docker Engine labels as
|
expression (AND match). Constraints can match node or Docker Engine labels as
|
||||||
follows:
|
follows:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user