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?

  • volume not getting mounted in nginx container
  • Error in building wildfly 8 in docker
  • Why does docker run -t keep the bash process from exiting and stopping the container
  • Using dotnet from docker to power Visual Studio C# extension (OmniSharp)
  • strace to monitor Dockerized application activity
  • How to use RUN clone git in dockerfile
  • Posted on the docker forums, but typically nobody answers there:

  • docker-machine cant connect to host/daemon and using insecure registry
  • Mounting file system in docker fails sometimes
  • Jetty Docker container running spring application unable to connect to mysql running outside docker container
  • docker stop && docker rm doesn't really get rid of my container
  • Docker compose volumes causing ERROR: Container command not found or does not exist
  • Docker Volume not saving
  • 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.