Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Docker container working directory mounting problem

Li I'm New Here Dec 10, 2021

Hey guys,

I am new to docker container and bamboo. And I am trying to use them to build my FPGA project.

Until recently I was using LXC container with bamboo and everything worked. Now I want to use docker container instead.
The configuration of docker is shown in the following figure:


It seems that docker run has mounted the correct volumes:


My FPGA project source files are also successfully checked out:


In order to make sure that it is the correct directory I have added a "pwd" command in a script task and it showed the correct directory:


Now it should compile the FPGA project using a script in the working directory, which is shown above. But it complains that the script is not to be found.


I think the working directory is somehow not correctly mounted and I have found this page about this issue: 

Since I am using absolute host path volume mounting, I think the first solution mentioned in the page may be suitable. 

  • stop container
  • create a host path identical to Bamboo home path, for example /opt/atlassian-bamboo/agent-home
  • copy Bamboo home to a newly created directory (for example from /root/bamboo-volume to  /opt/atlassian-bamboo/agent-home)
  • start Bamboo server (agent) container with a new volume mount binding: -v /opt/atlassian-bamboo/agent-home:/opt/atlassian-bamboo/agent-home

But I don't know how to do the steps in bamboo job configurator based on web browser. Can anyone give me some tipps?


1 answer

0 votes
Li I'm New Here Dec 13, 2021

Can some one help me?

Suggest an answer

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

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

48 views 0 3
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