Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I run a build inside a docker

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

0 votes
Answer accepted

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

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

547 views 6 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you