title: Docker C++ development and CI
body: <p>I want to use the docker to dockerize my C++ projects.
  The Internet has recommendations that it is better to use 2 containers - development and product. But I do not understand how I need to create a development container to support Continuous Integration.</p>
  
  <p>The questions are the following: </p>
  
  <ul>
  <li>if it's CI, when should the project be compiled at <em>docker build</em> or <em>docker run</em>?</li>
  <li>If in the docker build, how do I get the compiled project from the development container to be put in product container? Because at the stage of docker build you can not connect VOLUMES.</li>
  <li>Is there anyway the recipes for the use of docker in C ++ development?</li>
  </ul>
  
  <p>Maybe I'm not in the right direction at all, and, for example, a development container should include eclipse? Although what then about CI? All the tutorials that I find usually refer to PHP, which without compile stage.</p>