This is a use case demo showcasing some of the features in swarm. We'll use this for a presentation that we are providing for one of our first Docker Meetup groups in Sacramento.
- You'll need Docker Toolbox
- Download the GitHub Desktop which comes with git and a bash client.
- A system with about ~16G of RAM, and 4 Cores. SSD drive is highly desirable. An internet connection with 10 mBits / sec or better.
- Allow 60 minutes for swarm cluster provisioning.
- Allow 30 minutes to execute the demo.
- Install all requirements: Docker Toolbox and GitHub Desktop
- Clone this repository :
git clone https://github.com/wenlock/swarm-demo - If you have a proxy, setup the proxy.env file with the following contents:
Source both the
PROXY=yourproxy.com:8080proxy.envandproxy.shbefore running thebootstrap.shscript. - Run the demo bootstrap script:
bash setup/bootstrap.sh
Now lets do swarm use cases!
Sometime you might get this error:
docker-swarm-node-1 node ls
error during connect: Get https://192.168.99.101:2376/v1.29/nodes: x509: certificate is valid for 192.168.99.100, not 192.168.99.101
This might be a good indicator it's time to regenerate your certs because the time or ip addresses are wrong due to boot sequence. Usually this occurs after reboot.
This script should make sure your cluster is up and running and will regenerate the certs automatically.
setup/start.sh
