Skip to content

Instantly share code, notes, and snippets.

@d4n13lbc
Last active October 25, 2016 01:11
Show Gist options
  • Save d4n13lbc/692e9f6b8f0586ef0d6780cf85356969 to your computer and use it in GitHub Desktop.
Save d4n13lbc/692e9f6b8f0586ef0d6780cf85356969 to your computer and use it in GitHub Desktop.
curl -Ls https://get.cloud.docker.com/ | sudo -H sh -s f00368fe6e2d4ecabbd06fe8466a76ce
docker-machine create -d virtualbox --virtualbox-memory 512 local
eval "$(docker-machine env local)"
docker run swarm create
docker-machine create \
-d virtualbox \
--virtualbox-memory 512 \
--swarm \
--swarm-master \
--swarm-discovery token://c4567bc8d5f2d52fa76cac3f8c9ed4d2 \
swarm-master
docker-machine create \
-d virtualbox \
--virtualbox-memory 512 \
--swarm \
--swarm-discovery token://c4567bc8d5f2d52fa76cac3f8c9ed4d2 \
swarm-agent-00
docker-machine create \
-d virtualbox \
--virtualbox-memory 512 \
--swarm \
--swarm-discovery token://c4567bc8d5f2d52fa76cac3f8c9ed4d2 \
swarm-agent-00
eval $(docker-machine env --swarm swarm-master)
docker info
docker ps -a
docker run hello-world
docker ps -a
https://docs.docker.com/engine/userguide/networking/get-started-overlay/#/create-a-swarm-cluster
https://docs.docker.com/compose/swarm/
docker-compose scale web=2 worker=3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment