You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/03/05 11:59:08 UTC

[GitHub] mangelov95 opened a new issue #71: Change default user in the Docker image from root to couchdb

mangelov95 opened a new issue #71: Change default user in the Docker image from root to couchdb
URL: https://github.com/apache/couchdb-docker/issues/71
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   I would like to change the defualt running user in the couchdb image from `root` to `couchdb`. What that means is basically when I do `docker exec` into the container I log in as `couchdb` rather than root. This is mainly aimed with security concerns in mind - I don't wont everybody who can log into the container to be root.
   
   ## Expected Behavior
   <!--- If you're describing a bug, tell us what should happen -->
   <!--- If you're suggesting a change/improvement, tell us how it should work -->
   Be able to log in as user couchdb.
   
   ## Current Behavior
   <!--- If describing a bug, tell us what happens instead of the expected behavior -->
   <!--- If suggesting a change/improvement, explain the difference from current behavior -->
   
   I tried adding `USER couchdb` before the `ENTRYPOINT` in the Dockerfile, however it seems that root access is needed for `docker-entrypoint.sh`, so it seems I can't do that on the Dockerfile side.
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   
   ## Steps to Reproduce (for bugs)
   <!--- Provide a link to a live example, or an unambiguous set of steps to -->
   <!--- reproduce this bug. Include code to reproduce, if relevant -->
   1.
   2.
   3.
   4.
   
   ## Context
   
   <!--- How has this issue affected you? What are you trying to accomplish? -->
   <!--- Providing context helps us come up with a solution that is most useful in the real world -->
   
   Limit the root access for people logging into the container
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced the bug in -->
   Using the 2.1.1 image.
   * Version used: 2.1.1
   * Browser Name and version:
   * Operating System and version (desktop or mobile): Host system is Ubuntu 16.04
   * Link to your project:
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services