It’s becoming more common to utilize Docker to build and test software in containers, the main benefits being speed and lower resource utilization compared to virtual machines. Initially you may think that running Docker-in-Docker is the correct solution, but a much easier and lighter weight method is to pass the /var/run/docker.sock file into the container. This article comes from an early developer of Docker, so you know they’re reputable.