Automating the Docker testing process

In this section, we will explore how to automate testing using Jenkins and Docker. As mentioned earlier, we are going to use GitHub as our repository. We have already uploaded the Dockerfile,, and files of our previous example to GitHub at, which we are to use in the ensuing example. However, we strongly encourage you to set up your own repository at, using the fork option that you can find at, and substitute this address wherever applicable in the ensuing example.

The following are the detailed steps to automate Docker testing:

Configure Jenkins to trigger a build when a file is modified ...

Get Learning Docker - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.