docs: service create: document non-matching/exclude constraints

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-02-10 11:16:22 +01:00
parent abeb7babdf
commit b059c93c92
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C

View File

@ -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: