Setting up swarm without docker-machine

Most of the tutorials about docker swarm uses docker-machine and Virtualbox. While that is great, it adds an extra layer to my infrastructure.

Is there any tutorial for setting up swarm without the use of docker-machine / Virtualbox ? (So, just on two existing docker-hosts)

I was able to do this by following this with a few tweaks: https://github.com/docker/swarm. Note I also had to install go (https://golang.org/doc/install#install)

We now have swarm successfully running on three Ubuntu 14.04 hosts. I’m using a file for swarm discovery (https://docs.docker.com/swarm/discovery/)

Note we aren’t in production, but have not encountered an issues.

1 Like