Publishing Images

In the previous chapter, you 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 Docker Hub, and how to get the most out of Docker Hub. We will create a new Docker image, using the commit command and a Dockerfile, build on it, and push it to Docker Hub. The concept of a Docker trusted repository will be discussed. This Docker trusted repository is created from GitHub or Bitbucket, and it can then be integrated with 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 Docker Hub. The Docker Hub REST APIs can be used for user management and the manipulation of the repository programmatically.

The following topics are covered in this chapter:

  • Understanding Docker Hub
  • Pushing images to Docker Hub
  • Automatic building of images
  • Private repositories on Docker Hub
  • Creating organizations on Docker Hub
  • The Docker Hub REST API
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset