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 volumes


As you remember from the previous chapter, Docker filesystems are kind of temporary by default. If you start up a Docker image (that is, run the container) you'll end up with a read/write layer on top of the layer's stack. You can create, modify, and delete files as you wish, but if you stop the container and start it up again, all your changes will be lost: any files you previously deleted will now be back, and any new files or edits you made won't be present. Of course, you can commit the changes back into the image to have them persisted. This is a great feature if you want to create a complete setup of your application in the image, altogether with all its environment variable. But this is not very convenient when it comes to storing and retrieving data. At best we should separate out the container lifecycle from the data. Ideally, you would probably want to keep these separate so that the data generated (or being used) by your application is not destroyed or tied to the...