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

Why do Atlassian Docker images run as root?


It's generally bad practice for Docker images to run as root.  However, the official Bitbucket and Confluence Server images run as root.

Unfortunately, if you're using an enterprise container management platform (we're using OpenShift), containers that run as root aren't even allowed to start.  This is for securtiy purposes.  Most people aren't willing to turn off security features in a production environment in order to run a docker image.

Is there any plans to fix this in the near future?

The image is set to run on a high port, so there shouldn't be much issue in running this as a non-root (or daemon) user, right?



1 answer

Are there any news regarding that issue? I'm in the process of deploying confluence and bitbucket on Openshift as well. Would be very helpful to have a docker image which doesn't run as root (nor as daemon), but as an arbitrary user.

Hi Michael,


this required some changes to the Dockerfile. I managed to run it as an arbitrary user, however with a few issues regarding timeouts. I will clean up and probably add a pull request tomorrow :)

Like mforrer likes this

Great, thanks :) any idea in which confluence image release this changes will be?

Any update on this? I'm also interested in running this container as a non-root user. 


recent changes made the situation even worse. This part in the file:

def gen_cfg(tmpl, target, env, user='root', group='root', mode=0o644, overwrite=True):

makes it definitely impossible to run the image as a non-root user.

@Michael Rose any chances that this is getting reworked in the near future?



Like Idan atCox likes this

Suggest an answer

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

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,591 views 7 30
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