I created a Dockerfile to run Docker inside Docker:
FROM ubuntu:16.04 RUN apt-get update && \\ apt-get install -y \\ apt-transport-https \\
The recommendation I received for this was to use the -v parameter in docker run to map the docker socket between containers like this:
-v /var/run/docker.sock:/var/run/docker.sock