This project is to similify the setup for Docker Swarm Mode with Vagrant.
It will automatically create a swarm cluster of Docker, and the first node will be the manager and others will be worker.
For user in China, you can uncomment the following line in "provision-manager.sh", "provision-worker.sh" for using the Aliyun Mirrors to speed up the package installation/update.
#USE_ALIYUN_MIRROR=1
This application is available in the form of a Docker image that you can run as a container by executing this command:
vagrant up
Run the Swarm manager
vagrant ssh node-1
docker info
docker node ls