Understanding Docker Hub

Docker Hub is the central place used for keeping the Docker images either in a public or private repository. Docker Hub provides features, such as a repository for Docker images, user authentications, automated image builds, integration with GitHub or Bitbucket, and managing organizations and groups. The Docker Registry component of Docker Hub manages the repository for Docker images. Also, you can protect your repositories using Docker Security Scanning, which is free as of now. This feature was first enabled in IBM container repositories.

Docker Registry is a storage system used to store images. Automated build is a feature of Docker Hub, which is not open source yet at the time of writing this book. The following diagram shows the typical features:

In order to work with Docker Hub, you have to register with Docker Hub, and create an account using the link available at https://hub.docker.com/. You can update the Docker Hub ID, e-mail address, and password fields, as shown in the following screenshot:

After completing the sign up process, you need to complete the verification received in an e-mail. After the e-mail verification is completed, you will see something similar to the following screenshot when you log in to Docker Hub:

The creation of an account in Docker Hub has completed successfully, and now you can log in to your Docker Hub account from https://hub.docker.com/login/, as shown in the following screenshot:

Docker Hub also supports command-line access to Docker Hub using an Ubuntu Terminal:

$ sudo docker login  

Log in with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. Enter your username and password in the Terminal:

Username: vinoddandy
Password:

After a successful login, the output is as follows:

Login Succeeded

You can browse the available images in Docker Hub at https://hub.docker.com/explore/, as follows:

Also, you can see your settings, update your profile, and get details of supported communities, such as Twitter, Stack Overflow, #IRC, Google Groups, and GitHub.

..................Content has been hidden....................

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