You can use as a dynamically provisioned Docker agent. You can specify it as an agent Docker template and need to mark "privileged".
As mentioned by Jérôme Petazzoni on his blog post, this method is not a silver bullet.
Technical, this image is a merge of two great works:
- Ervin Varga - https://github.com/evarga/docker-images
- Jérôme Petazzoni - https://github.com/jpetazzo/dind