Skip to content

wsf1991/docker-swarm-mode-vagrant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-swarm-mode-vagrant

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.

Usage

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

Play with it

Run the Swarm manager

vagrant ssh node-1
docker info
docker node ls

References

Swarm mode overview

About

Vagrant for Docker swarm mode introduced from 1.12

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%