Automating host deployment

There are many ways to automate the deployment of Docker hosts. The specifics, as always, depend on the orchestration system. For example, adding new hosts to a Docker Swarm cluster running on Amazon EC2 is as easy as running something like the following:

$ docker-machine create --driver amazonec2
$ docker swarm join --token ABC... manager

For Azure or GCE, it would be the same. Simply replace the driver and pass the appropriate driver specific flags to docker-machine.

This section will look at a couple of different tools that can be used to manage the hosts for a Docker cluster. The first is Terraform which works with just about everything. Next is Docker's own cloud management tool, Docker Cloud. Finally, it will introduce ...

Get Docker Orchestration now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.