Created
July 7, 2017 16:42
-
-
Save rn/6ad5c1f5a1cfbbd5f0da22fc8833d75d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
linux: docker swarm init --advertise-addr 172.16.10.187 | |
windows: docker swarm join --token SWMTKN-1-5uh7ngqugobziornkhqiw5o414mii26ohehuuoqimfnuegg2qm-egbpl6vsjirswg5l81eanam8v 172.16.10.187:2377 | |
linux: docker node update --label-add node.labels.os=linux rn-ub-vm | |
linux: docker node update --label-add node.labels.os=windows win-nuc1 | |
linux: docker network create --subnet 10.100.0.0/24 --gateway 10.100.0.1 -d overlay mynet | |
linux: docker service create --network mynet --constraint 'node.labels.os==linux' --detach -p 8080:80 --name nginx nginx | |
linux: docker service create --network mynet --constraint 'node.labels.os==windows' --detach --name nano microsoft/nanoserver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment