Building Docker images inside of a Dockerized Jenkins server

Alright. Now you know how to deploy Jenkins as a Docker container, but we really want to be able to use Jenkins to build Docker images, as we did in the standalone deployment of Jenkins. To do that, we could deploy the same Jenkins image, and exec into it and install Docker and could probably get it to work, but we don't need to go to that much trouble. We're not the first pioneers to go down this road. There are several Docker images that have been created to do just what we are looking to do. One such image is h1kkan/jenkins-docker:lts. You can read about it by following the link in the following References section, but for now just know that it is an image that has been set up ...

Get Docker Quick Start Guide 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.