Automating the build process for images
You learned how to build images locally and push these images to Docker Hub. Docker Hub also has the capability to automatically build the image from the Dockerfile
kept in the repository of GitHub or Bitbucket. Automated builds are supported on both the private and public repositories of GitHub and Bitbucket. The Docker Hub Registry keeps all the automated build images. The Docker Hub Registry is open source and can be accessed from https://github.com/docker/docker-registry.
We will discuss the steps needed to implement the automated build process:
- We first connect Docker Hub to our GitHub account.
- Log in to Docker Hub from https://hub.docker.com/login/, click on
Create
, and then navigate toCreate Automated Build
, as shown in the following screenshot:

- We'll now select
Link Accounts
:

- Once GitHub is selected, we will select
Public and Private (Recommended)
, as shown here:

After clicking on Select
, your GitHub repository will now be shown.
- Now, provide...