Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

vagrant-docker-swarm-mode

This project sets up a Docker Swarm Mode cluster. It will create X managers (defaults to 1) and Y workers (defaults to 1).

Usage

Just start your cluster with vagrant up to kick in with the default setup. To modify the number of managers and workers edit the Vagrant file and modify the appropriate constants in the beginning of the file:

NUM_OF_MANAGERS=1
NUM_OF_WORKERS=1

Adding Managers and Workers

If additional managers and/or workers need to be added to an existing swarm just update the same variables as shown above and run vagrant up again. The new nodes will be added to the swarm.

Cleanup

To start from scratch make sure to remove the 'swarm-token' folder which will be created by the first manager started. Something like the following would make sense:

vagrant destroy --force
rm -rf swarm-token

This folder is used to store the tokens (managers and workers) for joining the swarm.

About

A Vagrant file to kick a Swarm Mode cluster

Resources

License

Packages

No packages published
You can’t perform that action at this time.