Docker Swarm on AWS using Docker Machine
In this post I’m going to talk about how to use Docker Machine to build a Docker Swarm cluster on Amazon Web Services (AWS). This post is an adaptation of this Docker documentation post that shows how to build a Swarm cluster using VirtualBox.
This post builds on the earlier post I wrote on using Docker Machine with AWS, so feel free to refer back to that post for more information or more details anywhere along the way.
At a high level, the process looks like this:
- Obtain a Swarm cluster token.
- Provision the Swarm master.
- Provision the Swarm nodes.
Let’s take a look at these steps in a bit more detail.
Obtain a Swarm Cluster Token
There’s at least a couple ways to do this, but they pretty much all involve a Linux VM using the Swarm Docker image. It’s up to you exactly how you want to do this—you can use a local VM, or you can use an AWS instance. The Docker documentation tutorial uses a local VM with the VirtualBox driver:
docker-machine create -d virtualbox local
env $(docker-machine env local)
docker run swarm create
The first command above creates a VirtualBox VM (named “local”) and Continue reading

Kubernetes 1.2 can now handle 1,000 nodes and 30,000 pods.
Oracle is moving into the enterprise data center with a subscription-based cloud offering.
The threat of white box switches has cast a shadow over big network equipment vendors for years, as the combination of Moore’s Law and economies of scale provides merchant switch silicon an overwhelming price/performance advantage over proprietary platforms.
Both Microsoft and HPE are customers as well.
