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

Why do Atlassian Docker images run as root? Edited

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?

 

image.png

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. 

Thanks

recent changes made the situation even worse. This part in the entrypoint.py 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?

 

Thanks

Like Idan atCox likes this

@Rhätische Bahn AG please vote on https://jira.atlassian.com/browse/BSERV-12531 to promote nonroot Docker image

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

494 views 24 9
Join discussion

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