To use Docker containers for the Jenkins build agents, you need to do a few things to your Jenkins configuration:
- Build a new Docker image that can act as a Jenkins build agent, and is capable of building Docker images (of course)
- Push the new image to a Docker registry
- Turn off the default Jenkins build agents
- Install the Docker plugin for Jenkins
- Configure a new cloud to enable Dockerized build agents