Merge pull request #339 from dave-pollock/patch-1

Update swarm.md
This commit is contained in:
Misty Stanley-Jones 2016-11-04 17:11:40 -07:00 committed by GitHub
commit f4b0ec85ff
1 changed files with 3 additions and 3 deletions

View File

@ -160,15 +160,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