Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SERVICE] constraint supports #8

Open
anak10thn opened this issue Jan 4, 2017 · 0 comments
Open

[SERVICE] constraint supports #8

anak10thn opened this issue Jan 4, 2017 · 0 comments
Assignees

Comments

@anak10thn
Copy link
Member

https://docs.docker.com/engine/reference/commandline/service_create/#/specify-service-constraints---constraint
use :

services:
   app:
       image: "aksaramaya/docker-http-server:v1"
       constraint: "node.role==manager"
node attribute matches example
node.id node ID node.id == 2ivku8v2gvtg4
node.hostname node hostname node.hostname != node-2
node.role node role: manager node.role == manager
node.labels user defined node labels node.labels.security == high
engine.labels Docker Engine’s labels engine.labels.operatingsystem == ubuntu 14.04
anak10thn added a commit that referenced this issue Jan 4, 2017
@anak10thn anak10thn self-assigned this Jan 4, 2017
@anak10thn anak10thn added this to the beta 2 milestone Jan 4, 2017
@anak10thn anak10thn removed this from the beta 2 milestone Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant