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

Chapter 4. Networking and Persistent Storage

In the previous chapter, we learned about images and containers and a way to modify them. For all practical purposes, the service running inside a container needs to be exposed to the outside world. The Docker tool chain provides a very powerful network interface that enables you to expose as well as control network connectivity as per your requirement. In this chapter, we will dive deep into the docker networking approach. The persistent storage will be useful for storing data, because, as you remember from the previous chapters, Docker filesystems are temporary, so to speak. If you stop the running container, all your changes will be lost: any deleted files will be back, and any changes in the existing files you have made will not be present. In this chapter, we are going to cover the following topics:

  • Docker networking, including network types such as host, bridge, or overlay

  • Exposing and mapping ports

  • Linking containers

  • Creating Docker volumes...