Last active
March 10, 2016 18:20
-
-
Save clintkitson/9459ef212651e2334312 to your computer and use it in GitHub Desktop.
docker swarm
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
eval $(docker-machine env manager) | |
TOKEN=$(docker run --rm swarm create) | |
docker-machine create --driver=virtualbox --swarm --swarm-master --swarm-discovery token://$TOKEN manager | |
docker-machine create --driver=virtualbox --swarm --swarm-discovery token://$TOKEN agent1 | |
docker-machine create --driver=virtualbox --swarm --swarm-discovery token://$TOKEN agent2 | |
eval $(docker-machine env --swarm manager) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment