For #SwarmWeek, our goal is not only to get you educated and comfortable with Docker Swarm, but to evaluate it by setting up your first cluster. So we created a video tutorial series to help you walk through the exact commands and configuration you need to get started.
Follow along this three video series and you will setup a basic Swarm cluster with a high availability configuration and setup TLS for secure communications. You’ll learn everything you need to set-up a production environment. So let’s get to it!
Video 1: Create the Swarm Cluster
This tutorial guides you through setting up a two node Swarm cluster with a single Swarm manager. You will go through the commands used to install Consul for service discovery* and Swarm manager as containers on the host, join additional nodes to the cluster and configure your Docker client to communicate with the Swarm. You will need to have Docker Engine already installed on all three hosts. Refer to these install docs to prepare the hosts.
Video 2: High Availability Configuration
This tutorial explains how to take the Swarm environment you just finished setting up and configure additional Swarm managers to provide a highly available environment. You will learn how to set up a secondary Swarm manager that will serve as the leader in the event the primary Swarm manager fails. The documentation on Swarm high availability is here.
Video 3: Setting up TLS
This last tutorial explains how to secure your Swarm environment by setting up TLS for secure communications between your Docker client,the Swarm manager, and the Docker hosts. TLS uses public key infrastructure (PKI), a combination of security-related technologies, policies and procedures to create and manage digital certificates to secure communication. This is important because Docker nodes in a Swarm cluster are bound to a network port. Get more details around how Docker uses TLS.
Once you have your Swarm cluster up and running, you can deploy this sample app or your own Compose app to your cluster. Also check out these other great use case tutorials contributed by the community – deploying Swarm on Azure, running a Windows Swarm on your laptop, and play around with the scheduling strategies.
When you’re done, share a picture or description of your Swarm with us on Twitter and tag @docker and #SwarmWeek for a chance to win a free ticket to DockerCon 2016 in Seattle, WA on June 19-21.
- Get started by downloading Docker Swarm and read the docs
- Try Docker Swarm as part of Docker Datacenter
- Submit questions to Docker Forums or file issues in Github
- Contribute to the Docker Swarm project
Learn More about Docker
- New to Docker? Try our 10 min online tutorial
- Share images, automate builds, and more with a free Docker Hub account
- Read the Docker 1.10 Release Notes
- Subscribe to Docker Weekly
- Sign up for upcoming Docker Online Meetups
- Attend upcoming Docker Meetups
- Register for DockerCon 2016
- Watch DockerCon EU 2015 videos
- Start contributing to Docker