Book Image

Developing with Docker

By : Jaroslaw Krochmalski, Jarosław Krochmalski
Book Image

Developing with Docker

By: Jaroslaw Krochmalski, Jarosław Krochmalski

Overview of this book

This fast-paced practical guide will get you up and running with Docker. Using Docker, you will be able to build, ship, and run many distributed applications in real time. You will start with quickly installing Docker and start working with images and containers. We will present different types of containers and their applications, and show you how to find and build images. You will learn how you can contribute to the image repository by publishing different images. This will familiarize you with the image building process and you will be able to successfully run your programs within containers. By finishing this book, you will be well equipped in deploying your applications using Docker and will have a clear understanding of concepts, techniques, and practical methods to get it running in production systems.
Table of Contents (16 chapters)
Developing with Docker
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Docker Swarm mode


We have mentioned the Swarm mode briefly in the Chapter 4Networking and Persistent Storage, when we were learning about multi-host networks. This time, we will look closer to the container clustering features of Docker. The Swarm mode is quite new feature in Docker - it's available in Docker version 1.12 and up. It means, that you can only use this in Linux, which is obvious, but if you run Docker in Windows or Mac, you can use the native Docker for Windows or Docker for Mac application. However, what Swarm is? Let's explain what was the purpose behind including the Swarm in latest Docker versions.

The purpose

Running a single application in a Docker container is easy. We already did it a number of times. But what about scaling and fail-over? Imagine that you have an application or service that will need to respond swiftly even under heavy load. If a single container cannot handle the load, then you will probably want to run multiple containers. Using Docker Swarm, you...