Skip to content

Instantly share code, notes, and snippets.

@ehazlett
Last active August 29, 2015 14:15
Show Gist options
  • Save ehazlett/a17357f7760ea875cc63 to your computer and use it in GitHub Desktop.
Save ehazlett/a17357f7760ea875cc63 to your computer and use it in GitHub Desktop.

To create a Swarm cluster using VirtualBox using Machine:

  • TOKEN=$(docker-machine create-swarm-token)
  • docker-machine create -d virtualbox --swarm --swarm-discovery token://$TOKEN --swarm-master swarm-master
  • docker-machine create -d virtualbox --swarm --swarm-discovery token://$TOKEN swarm-node-00

Then configure your Docker client:

  • $(docker-machine env --swarm swarm-master)
  • docker ps
  • docker info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment