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

Publishing images


When dealing with images on the remote registry, the concept of tag is very important. We were going to find the images and identify those using tags. This is also crucial if you are going to publish your own image; you will need to tag it first. Let's do that now.

Tagging

We use the docker tag command to tag an image. You can identify an image you want to tag by either using its ID or its name. Also, you can pick the image to tag using other tags. The syntax of the docker tag command is as follows:

docker tag IMAGE[:TAG] IMAGE[:TAG]

For example, you will need to execute the following command to tag a local image with name myHelloWorld and tag test into the myRepo repository with version1.0.test:

docker tag myHelloWorld:test myRepo/myHelloWorld:version1.0.test

If you run the docker images command now, you will see your newly tagged image.

Your newly tagged image is now ready to be pushed to the remote registry. The concept of tags is used heavily by the Docker Hub's automated...