We saw earlier how to push Docker images to Docker Hub. Docker Hub allows us to create automated images from a GitHub or Bitbucket repository using its build clusters. The GitHub/Bitbucket repository should contain the Dockerfile and also the content that is to be copied/added inside the image. We will be looking at a GitHub example in upcoming sections.
Automated builds – with GitHub and Bitbucket
Getting ready
For this you, will need a valid Docker ID and GitHub account.
Also, visit https://github.com/docker-cookbook/apache2 for the apache2 Dockerfile.