Docker in Docker : <p>We have app and which will spin the short term (short span) docker containers. Right now, it runs in Ubunut16.04 server (VM) and we installed docker, and nodejs in same server. We have nodejs app which runs in same server so whenever a request comes in, then the nodejs app will spin up a docker container and execute a user input inside the docker container. Once after the docker finish its job or if it runs out of admin defined resources then the docker container will be forcefully killed (docker kill) and removed (docker rm). </p>

<p>Now my question is, is it best practices to run the Ubunte16.04 docker container and run nodjes app and the short term docker containers inside the Ubunuter16.04 docker container. </p>

<p>In short run a docker inside other docker container.</p>

<p><a href="https://i.stack.imgur.com/qCxL5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qCxL5.jpg" alt="enter image description here"></a></p>
