In this chapter, you learned how to deploy Docker applications using Docker Swarm and the Docker for AWS solution. Docker for AWS provides a CloudFormation template that allows you to set up a Docker Swarm cluster within minutes, and also provides integration with AWS services including the Elastic Load Balancer service, Elastic File System, and Elastic Block Store.
After creating a Docker Swarm cluster, you learned how to establish remote access to a Swarm manager for your local Docker clients by configuring an SSH tunnel, which links to the /var/run/docker.sock socket file on your Swarm manager and presents it as a local endpoint your Docker client can interact with. This makes the experience of managing your Swarm clusters similar to managing your local Docker Engine.
You learned how to create and deploy Docker services, which typically represent a long-running...