-
Type:
Bug
-
Resolution: Low Engagement
-
Priority:
Low
-
None
-
Affects Version/s: 6.4.0
-
Component/s: Docker Runner
-
1
-
Severity 3 - Minor
Issue Summary
Users can deliberately remove volumes that are necessary for the correct operation of a job tasks. If they are needed they should not be removable.
Steps to Reproduce
- Create a job with docker runner
- Create a script task with a simple command
- Remove the bamboo.tmp.directory volume
Actual Results
The script task will not work due to the fact that the docker runner will not find it.
/tmp/runInDocker5641418594940319039.sh: 4: /tmp/runInDocker5641418594940319039.sh: /var/atlassian/application-data/bamboo/temp/DR-DRT-JOB1-2-ScriptBuildTask-6641718064966873655.sh: not found
Workaround
Go to Job configuration >> Docker >> Volumes and make sure you have the following volumes configured:
| Host directory | Container directory |
|---|---|
| ${bamboo.tmp.directory} | ${bamboo.tmp.directory} |
| ${bamboo.working.directory} | ${bamboo.working.directory} |