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 2019/11/13 09:39:08 UTC
[GitHub] [couchdb-docker] roelal opened a new issue #159: couchdb running as
root
roelal opened a new issue #159: couchdb running as root
URL: https://github.com/apache/couchdb-docker/issues/159
At the [end of the docker entrypoint](https://github.com/apache/couchdb-docker/blob/00e1ee833e47f4867d2c105de999a53c71b90ce0/2.3.1/docker-entrypoint.sh#L101) there's this:
```sh
# [...]
if [ "$1" = '/opt/couchdb/bin/couchdb' ]; then
# [...]
if [ "$(id -u)" = '0' ]; then
exec gosu couchdb "$@"
fi
fi
exec "$@"
```
If I understand it correctly, couchdb will be run as user couchdb if the container is running as root. However, written like this, I think that:
if couchdb would exit, entrypoint.sh would continue, exiting the if clause and starting couchdb again, this time just as root. Which could be undesired.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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