Installing Bamboo in Docker fails to create directories

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When installing Bamboo in Docker, the installation will fail at some point, and the error will be related to Bamboo failing to create directories.

Environment

Any supported version of Bamboo, using Docker to host Bamboo.

Diagnosis

In one of Bamboo's installation screens, Bamboo won't be able to create a core folder in the home folder. The error message on screen will look like this, or similar to this:

(Auto-migrated image: description temporarily unavailable)

Cause

ℹ️ It's worth mentioning that for this issue we can't look at logs, since log files have not been created yet.

When a Docker container is created, you have the possibility to map folders between the local OS and within Docker. An example command will look like this:

1 docker run -v /data/bamboo:/var/atlassian/application-data/bamboo --name=bamboo --hostname=bamboo --init -d -p 54663:54663 -p 8085:8085 atlassian/bamboo-server

The key part of the command will be

1 -v /data/bamboo:/var/atlassian/application-data/bamboo

Here the local directory is /data/bamboo. If the user running the Docker process doesn't have enough permissions to read and write on /data/bamboo, the we will see this error.

Solution

Make sure the user running the Docker process has full permissions on /data/bamboo (or the corresponding folder).

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.