Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 09315bf

Browse files
committed
docs: service create: document non-matching/exclude constraints
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit b059c93c9211a0bcc8aea0ffdea1f591aa0d853a) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 27f061266579ea6402feb047b24ab66463ef69d7 Component: cli
1 parent 275af80 commit 09315bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

components/cli/docs/reference/commandline/service_create.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,8 @@ $ docker service create \
667667
### Specify service constraints (--constraint)
668668

669669
You can limit the set of nodes where a task can be scheduled by defining
670-
constraint expressions. Multiple constraints find nodes that satisfy every
670+
constraint expressions. Constraint expressions can either use a _match_ (`==`)
671+
or _exclude_ (`!=`) rule. Multiple constraints find nodes that satisfy every
671672
expression (AND match). Constraints can match node or Docker Engine labels as
672673
follows:
673674

0 commit comments

Comments
 (0)