Skip to content

Instantly share code, notes, and snippets.

@d4n13lbc
Last active October 25, 2016 01:11
Embed
What would you like to do?
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