Skip to content

Instantly share code, notes, and snippets.

@lucj
Created September 12, 2016 19:24
Show Gist options
  • Save lucj/63f78ad6088a250f1395bc11df00bf7c to your computer and use it in GitHub Desktop.
Save lucj/63f78ad6088a250f1395bc11df00bf7c to your computer and use it in GitHub Desktop.
hybrid-swarm-add-arm-constraint
pi@manager1:~ $ docker service create --name hello --replicas 6 --constraint 'node.labels.arc == arm' alexellis2/arm-hellonode
20fqregbfqzc3fv5spfdhxtry
pi@manager1:~ $ docker service ls
ID NAME REPLICAS IMAGE COMMAND
20fqregbfqzc hello 6/6 alexellis2/arm-hellonode
pi@manager1:~ $ docker service ps hello
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
adejiyp6rg58paxl36rowfpyb hello.1 alexellis2/arm-hellonode manager1 Running Running 2 minutes ago
1hahmv9h4atco9tcpqak4rcye hello.2 alexellis2/arm-hellonode manager1 Running Running 2 minutes ago
5t48xoxo4r3v21qxbtwdr6a48 hello.3 alexellis2/arm-hellonode manager1 Running Running 2 minutes ago
dh4glxwpvbnv5s03pf36qmigi hello.4 alexellis2/arm-hellonode manager1 Running Running 2 minutes ago
d48th6s9uxduwdwk4iq9d3xyb hello.5 alexellis2/arm-hellonode manager1 Running Running 2 minutes ago
f1unqj4ozezbob9ju0cd5aab3 hello.6 alexellis2/arm-hellonode manager1 Running Running 2 minutes ago
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment