# Docker processes running as non-root? Any way to specify user?

**URL:** <https://meta.discourse.org/t/docker-processes-running-as-non-root-any-way-to-specify-user/27581>\
**Category:** Product Support\
**Tags:** docker\
**Created:** [Abril 15, 2015, 3:15am UTC](https://meta.discourse.org/t/docker-processes-running-as-non-root-any-way-to-specify-user/27581 "2015-04-15T03:15:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Eric\_Toombs](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@Eric\_Toombs](https://meta.discourse.org/u/Eric_Toombs)\
**Post date:** [Setembro 22, 2015, 10:58pm UTC](https://meta.discourse.org/t/docker-processes-running-as-non-root-any-way-to-specify-user/27581/5 "2015-09-22T22:58:25Z")

</div>

Though running as non-root is obviously a good idea, I find the choice of user (very) odd. Usually, a user dedicated to the daemon is run. For example, the user `opendkim` runs opendkim. This ensures the regular user `bob` does not have control over anything it doesn’t need to, or perhaps shouldn’t.

Also, I don’t get how discourse decided to pick my username in the first place. The only thing I can come up with is it assumes everybody will start the daemon using sudo (A dubious assumption) and checks the environment variable $SUDO\_USER.

The only other explanation I can come up with is that UID=1000 has a different meaning within the docker container. Does this mean UID=1000 doesn’t have access (eg. ability to send UNIX signals) to the docker processes, even though the process UID is right?

---

_[View the full topic](https://meta.discourse.org/t/docker-processes-running-as-non-root-any-way-to-specify-user/27581)._
