What is the purpose of docker-in-docker when using a dockerized Jenkins?

The tutorials that previously used Docker in Docker to run a container from the Jenkins controller have been updated to use an agent and to not require Docker in Docker. The tutorials now use Docker compose to define the controller and an agent. The agent is configured to include the necessary tools for the specific tutorial. Concerns related to the security of Docker in Docker are resolved for users of the tutorials.

Special thanks to @ash-sxn for the Google Summer of Code 2023 project “Docker-based Jenkins quickstart examples” and to @poddingue who was lead mentor for the GSoC project and has extended it to cover the tutorials.

The tutorials are:

1 Like