The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I run a build inside a docker

rory_toma
April 1, 2020

We're evaluating bamboo. I've set up a server with one remote agent with docker capability.

I've set up a job to use the remote agent with "Run a Docker container".

It simply does no more then "/usr/bin/uname -n"

 

WHen I run the job, it fails with the below. I can cut as paste the exact docker run command and run it as my bamboo user just fine. Support asked my why I was trying to do docker in docker... I'm not unless the default instructions use docker in docker...

command	01-Apr-2020 14:39:22	Beginning to execute external process for build 'test-openvpn - build - Default Job #17 (VPN-BUIL-JOB1-17)'\n ... running command line: \n/tmp/runInDocker469973288492087922.sh /usr/bin/docker run --volume /home/bamboo/bamboo-agent-home/xml-data/build-dir/VPN-BUIL-JOB1:/data --workdir /data --rm utopia:5000/build-centos76-root /usr/bin/uname -n\n ... in: /tmp\n
error	01-Apr-2020 14:39:23	/tmp/runInDocker6966691022968389167.sh: line 4: /usr/bin/docker: No such file or directory

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
rory_toma
April 1, 2020

OK, made progress here. There are two docker setting which do two different things. Only use one of them.

rory_toma
April 1, 2020

There is one in the build step. This is not the one you want to use. You want to use the one under the "Docker" tab instead.

TAGS
AUG Leaders

Atlassian Community Events