Jenkins agent/slave with docker in docker

Jenkins agent/slave with docker in docker

We are working on Jenkins agent/slave and we have many builds that use docker. Can you point me to some Jenkins docker image with instructions and how to run it and set it up to verify that it would build docker image in Jenkins container/slave provisioned by it.

to combine jenkins with docker try this:

as base jenkins image, you should have a look at:

The official dockerized jenkins image has moved and is now here.

This image works fine, except when your pipeline has docker build or run steps in it. In that case you’ll run into several problems as described in this blog. A good solution is described there too.