Run a Swarm cluster locally using Vagrant.
This will create and setup 3 Vagrant machines in a private network (10.0.7.0/24):
- Swarm manager: 10.0.7.100
- Swarm node 1: 10.0.7.11
- Swarm node 2: 10.0.7.12
Install Vagrant and Docker on your machine.
Ensure you have a valid Vagrant provider installed.
Install vagrant-alpine plugin
$ vagrant plugin install vagrant-alpine
$ git clone https://github.com/DoByExample/local_swarm.git
$ cd local_swarm
$ bash ./start_swarm.sh