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 3. Understanding Images and Containers

In previous chapter, we learned how to install Docker on Windows, Mac OS, Linux, and Amazon EC2 cloud. So far, you should have Docker running on your machine and should be able to run the hello-world image in a container. In this chapter, we will dive deeper into the world of images and containers. Later, we will also cover image distribution-related terms, such as Docker repository, registry, and index. We are going to cover the following topics in this chapter:

  • Images

  • Layers

  • Containers

  • Saving changes to containers

  • Docker registry, repository, and index

Note that we will mainly use the shell (or command prompt in Windows) to execute Docker commands. You can always execute docker help to get a description of the available commands. Executing docker help with the name of specific command docker help pull, for example, will display information about this  command with a brief description of the available options:

Let's start by explaining in detail...