title: Multiple images inside one container
body: <p>So, here is the problem, I <strong>need to do</strong> some <strong>development</strong> and for that I need following packages:</p>
  
  <ol>
  <li>MongoDb</li>
  <li>NodeJs</li>
  <li>Nginx</li>
  <li>RabbitMq</li>
  <li>Redis</li>
  </ol>
  
  <p>One option is that <strong>I take a Ubuntu image</strong>, <strong>create a container</strong> and start installing them one by one and done, start my server, and expose the ports.</p>
  
  <p>But this can easily be done in a virtual box also, and it will not going to use the power of Docker. So for that I have to start building my own image with these packages. Now here is the question if I start writing my Dockerfile and if place the commands to download the Node js (and others) inside of it, this again becomes the same thing like virtualization.</p>
  
  <p>What I need is that I <strong>start from Ubuntu</strong> and keep on <strong>adding</strong> the <strong>references</strong> of <strong>MongoDb, NodeJs, RabbitMq, Nginx and Redis</strong> inside the <strong>Dockerfile</strong> and finally expose the respective ports out. </p>
  
  <p>Here are the queries I have:</p>
  
  <ol>
  <li>Is this possible? Like adding the refrences of other images inside the Dockerfile when you are starting FROM one base image.</li>
  <li>If yes then how?</li>
  <li>Also is this the correct practice or not?</li>
  <li>How to do these kind of things in Docker ?</li>
  </ol>
  
  <p>Thanks in advance.</p>