Docker and jenkins
<p>I am working with docker and jenkins, and I'm trying to do two main tasks :</p>

<ol>
<li>Control and manage docker images and containers (run/start/stop) with jenkins.</li>
<li>Set up a development environment in a docker image then build and test my application which is in the container using jenkins.</li>
</ol>

<p>While I was surfing the net I found many solutions :</p>

<ul>
<li>Run jenkins as container and link it with other containers.</li>
<li>Run jenkins as service and use the jenkins plugins provided to support docker.</li>
<li>Run jenkins inside the container which contain the development environment.</li>
</ul>

<p>So my question is what is the best solution or you can suggest an other approach.</p>

<p>One more question I heard about running a container inside a container. Is it a good practice or better avoid it ? </p>