Book Image

Learning Docker

By : Pethuru Raj, Jeeva S. Chelladhurai, Vinod Singh, Vinod kumar Singh, Jeeva Chelladhurai, Pethuru Raj Chelliah
Book Image

Learning Docker

By: Pethuru Raj, Jeeva S. Chelladhurai, Vinod Singh, Vinod kumar Singh, Jeeva Chelladhurai, Pethuru Raj Chelliah

Overview of this book

Table of Contents (18 chapters)
Learning Docker
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Publishing Images

In the previous chapter, we learned how to build Docker images. The next logical step is to publish these images in a public repository for public discovery and consumption. So, this chapter focuses on publishing images on the Docker Hub, and how to get the most out of the Docker Hub. We can create a new Docker image, using a commit command and a Dockerfile, build on it, and push it to the Docker Hub. The concept of a trusted repository will be discussed. This trusted repository is created from GitHub or Bitbucket. This can then be integrated with the Docker Hub to automatically build images, as a result of updates in the repository. This repository on GitHub is used to store the Dockerfile, which was previously created. Also, we will illustrate how worldwide organizations can enable their teams of developers to craft and contribute a variety of Docker images to be deposited in the Docker Hub. The Docker Hub REST APIs can be used for user management and manipulation...