Run Jenkins Job in a container
<p>I have several Jenkins jobs and several Jenkins slave nodes (physical machines).  These slaves are all running docker 1.12.1.  I would like for any of these jobs to run on any of these slaves.  Since these jobs have different environment requirements, I thought that I could create docker images for each of the different environments and then "within" the job, specify which container the job would run in. </p>

<p>Is this possible? i.e. to specify within these jobs a specific docker container that I would like these jobs to run in?  At the end of the job, the containers would be destroyed and only the artifacts and reports would remain.</p>

<p>There are several docker plugins that exist in Jenkins but I have yet found one that does exactly what I want.</p>