How can I boot a swarm of 50 machines with docker-machine?

I need to boot a bunch of ec2 instances (could be virtualbox instances, doesn’t matter) as a swarm. docker-machine seems to only work for doing one at a time, and that would take hours to boot 50 machines. I would like to boot the swarm master, and then in parallel boot the 49 swarm workers. This seems like a common use case, but docker-machine has no parameter I can find for the number of instances to boot.

How can I do this? Do I need to just script it myself?

  • Passing Tomcat parameters to Docker
  • Changing the default command of base docker images
  • How to access docker container via its Ip from the host
  • error in installing apache libtool not found
  • Docker apt-get update fails
  • Docker in “host” networking mode does not bind ports to the host
  • Posted on the docker forums, but typically nobody answers there:

  • Docker: Not a valid repository:
  • Docker portability issues with locally saved images
  • Permission denied when running a container (docker 1.12.5)
  • viewing the GUI in a docker container on windows
  • Mule 3.7 insufficient memory for JVM
  • Docker “Sharing Dependencies”
  • One Solution collect form web for “How can I boot a swarm of 50 machines with docker-machine?”

    What you’re looking for is configuration management software. Chef, Ansible, Terraform and their competitors were created to deploy and manage clusters like this.

    Docker-machine is great for running containers on my MacBook, but not so great for deploying cloud infrastructure. Look into deploying your swarm into Auto-Scaling Groups with the configuration management tool of your choice.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.