In this section, we will continue exploring Swarm Mode commands for managing a cluster.
You can choose to create new Swarm nodes, so Docker hosts, either way you prefer.
If Docker Machine is used, it will reach its limit very soon. You will have to be very patient while listing machines and wait for several seconds for Machine to get and print the information as a whole.
A method to add nodes manually is to use Machine with the generic driver; so, delegate host provisioning (Operating System installation, network and security groups configurations, and so on) to something else (such as Ansible), and later exploit Machine to install Docker in a proper manner. This is how it can be done:
Manually configure the cloud environment (security groups, networks, and so on.)
Provision Ubuntu hosts with a third party tool.
Run Machine with the generic driver on these hosts with the only goal to properly install Docker.
Manage hosts with the tool at part 2, or even others...