From 1967bd2603502f6261626da2f5d8ac4205e1a9d3 Mon Sep 17 00:00:00 2001 From: dave-pollock Date: Tue, 25 Oct 2016 14:57:00 +0100 Subject: [PATCH] Update swarm.md Scheduling filters should be configured in the environment section of compose files - NOT labels. --- compose/swarm.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compose/swarm.md b/compose/swarm.md index 4b6a46569c..43fbc4a53c 100644 --- a/compose/swarm.md +++ b/compose/swarm.md @@ -165,15 +165,15 @@ environment variables, so you can use Compose's `environment` option to set them. # Schedule containers on a specific node - labels: + environment: - "constraint:node==node-1" # Schedule containers on a node that has the 'storage' label set to 'ssd' - labels: + environment: - "constraint:storage==ssd" # Schedule containers where the 'redis' image is already pulled - labels: + environment: - "affinity:image==redis" For the full set of available filters and expressions, see the [Swarm