Answers: <p>Yes, you are correct. Bamboo will spawn the build containers on the agent that the build is running on (either Local, Remote, or, Elastic - depending on your configuration).</p>
  
  <p>In order for this to work the agent will require Docker to be installed and running.</p>
  
Answers: CC BY-SA 3.0
Answers: 2018-04-02T12:22:48.580Z
Answers: Wait but whats the difference to docker capability and using docker run in script tasks?
Answers: Ta Mu
Answers: CC BY-SA 3.0
Answers: 2018-04-02T23:59:16.107Z
Answers: The difference is that the stated purpose of the Docker runner is to isolate and maximise reproducibility of builds. The Docker tasks are there to interact with the Docker engine (building/running/pushing images).
  
  You are correct that you can achieve a similar outcome by issuing `docker run` commands inside a script task. The Docker runner will automatically mount your working directory.
Answers: nothingtosee
Answers: CC BY-SA 3.0
Answers: 2018-04-02T12:15:43.207Z
Answers: 2018-04-02T16:02:40.760Z
Answers: 2018-04-02T16:02:40.760Z
Answers: nothingtosee
Body: <p>Finally, it is possible in Bamboo to let a build run in a Docker container without dealing with agent configuration.</p>
  
  <p>The system just asks for a image.</p>
  
  <p>Now, what about the underlying infrastructure, what happens there? 
  Will then Bamboo server host just spawn containers locally (which limits horizontal scalability)? </p>
  
Tags: <docker><bamboo>
Title: Build isolation - Docker container based builds in Bamboo 6.4.0
UserDisplayName: Ta Mu
ThreadText: # Build isolation - Docker container based builds in Bamboo 6.4.0
  
  (Asked by: username_0 on 2018-03-20)
  
  Finally, it is possible in Bamboo to let a build run in a Docker container without dealing with agent configuration.
  
  The system just asks for a image.
  
  Now, what about the underlying infrastructure, what happens there?
  Will then Bamboo server host just spawn containers locally (which limits horizontal scalability)?
  
  **Tags:** docker, bamboo
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-04-02. Score: 3 | Accepted answer
  
  Yes, you are correct. Bamboo will spawn the build containers on the agent that the build is running on (either Local, Remote, or, Elastic - depending on your configuration).
  
  In order for this to work the agent will require Docker to be installed and running.
  
  > **Comments:**
  > **username_0**: Wait but whats the difference to docker capability and using docker run in script tasks?  
  > **username_1**: The difference is that the stated purpose of the Docker runner is to isolate and maximise reproducibility of builds. The Docker tasks are there to interact with the Docker engine (building/running/pushing images).  You are correct that you can achieve a similar outcome by issuing `docker run` commands inside a script task. The Docker runner will automatically mount your working directory.  
  
  ---
  
  