Integrating Jenkins and Docker Hub
In this section, as in Figure 8.31, we will focus on the last step of our CI/CD pipeline, which is integrating Jenkins with Docker Hub. As we mentioned before, there are plenty of registries out there. We will use Docker Hub because it is free and easy to use. At your workplace, your company will probably have a private local registry. You will need to ask the operations or IT admins to create an account for you and grant you some privileges so that you are able to access the registry and push your images to it.
In the following exercise, you will learn how to integrate Jenkins with Docker Hub and how to push the image that Jenkins built in the previous exercise.
Exercise 8.04: Integrating Jenkins and Docker Hub
In this exercise, you will integrate Jenkins with Docker Hub and push that image to your repository. First, you will install the Docker
, docker-build-step
, and...