You can run Docker-in-Docker (DinD), and in fact for this Docker (company) has an official DinD image .
However, the caveat is that this requires a privileged container, which, depending on your security needs, may not be a viable alternative.
An alternative solution to launch Docker using single-level containers (also called Docker-out-of-Docker or DooD) does not require a privileged container, but has several drawbacks that stem from the fact that you start the container from a context that is different from that in which it is running (i.e. you start the container from the container, but it works at the host level, and not inside the container).
I wrote a blog describing the pros and cons of DinD vs DooD here .
Having said that, Nestybox (the startup I just founded) is working on a solution that safely runs a real Docker-in-Docker (without using privileged containers). You can check it out at www.nestybox.com .
ctalledo Sep 18 '19 at 19:52 2019-09-18 19:52
source share