You can run Docker containers inside a Docker container. 
To allow this,
you have to pass the docker socks into the container 
using the option -v /var/run/docker.sock:/var/run/docker.sock.
For more discussions,
please refer to
How To Run Docker in Docker Container [3 Easy Methods]
.
However, 
be aware of potential security issues 
as this essentially gives root access of the host system to the Docker container.