In this series of four tutorials, Docker Cookbook author Sebastien Goasguen introduces the Docker tools which empower developers to create distributed applications. He introduces Docker Compose, Docker Engine, Docker Machine, and Docker Swarm and demonstrates how to use them to create a multi-container application; how to manage the application; how to start the application on a Docker Swarm cluster and scale it; and finally, how to set up networking for a Swarm to allow containers to communicate with each other across hosts.
This tutorial gives you a brief introduction to Docker Compose, by building a Ghost blog site.
Part Two: Docker Volumes and Networks with Compose
Demonstrates a few Docker Compose commands to manage a multi-container application, and introduces Docker Volumes and Docker Networks, which can be specified in the YAML file describing a Compose application.
A brief introduction to Machine and how to use it to create a cluster of Docker hosts called a Swarm.
A cluster of Docker hosts is needed to run a truly distributed application in production. This article looks at setting up networking for a Swarm to allow containers to communicate with each other across hosts.