Docker-in-Docker aka dind
In very exceptional situations, you may need to be able to run Docker commands from a Docker container. Wait? What?
Imagine this situation: you're running a PHP container, everything is fine and you wish to run a code quality tool like, let's start easy, phplint
(see this article for deeper info). You don't want to install phplint because you know a very cool Docker image who already contains it (think to jakzal/phpqa)
So, you're inside a container and you wish to run another container.
Another example: you're still inside a container and you wish to access to the list of running containers, already installed Docker images, volumes, ... (think to portainer)
Let's see in this article how to create your own Docker image, running as root or not, and configure it to allow Docker-in-Docker requests.