Automating the building process for images

We learnt how to build images locally and push those images to the Docker Hub. The Docker Hub also has the capability to automatically build the image from Dockerfile kept in the repository of GitHub or Bitbucket. Automated builds are supported on both private and public repositories of GitHub and Bitbucket. The Docker Hub Registry keeps all the automated build images. The Docker Hub Registry is based on 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:

  1. We first connect the Docker Hub to my GitHub account.

    Login to the Docker Hub, and click on View Profile and then navigate to Add Repository | Automated ...

Get Learning Docker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.