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

Identifying images and containers


As you remember from the previous chapters, images that you want to run can be identified simply by there name, such as Ubuntu. In this case, Docker will pick the image tagged by latest by default. You can also use the tag syntax or the digest syntax:

Image[:tag]
Image[@digest]

For example, if you want to run Ubuntu tagged as version 14.04, you simply execute the command:

docker run ubuntu:14.04

The image can contain an identifier called a digest. The digest is calculated as the sha256 checksum of the image manifest, excluding the signature portion. The manifest comprises of the image's name, its tag (latest), architecture, fsLayers (a list of the image's layers, referenced by their digests), history, schema version, and signatures. You can list the digest by specifying the --digests option to the docker images command. A digest can be used with the docker createdocker pull, and dockerrmi commands and with the FROM instruction in a Dockerfile. Also, it...