# 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:** [2015 年 4 月 15 日午前 3:15 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:** 1

<div class="post-metadata">

**Author:** ![brpc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brpc/32/114370_2.png) [@brpc](https://meta.discourse.org/u/brpc)\
**Post date:** [2015 年 4 月 15 日午前 3:15 UTC](https://meta.discourse.org/t/docker-processes-running-as-non-root-any-way-to-specify-user/27581/1 "2015-04-15T03:15:48Z")

</div>

So, if I start Discourse (and thus docker) via `sudo /var/discourse/launcher start <config>` all the docker processes run as the user who ran sudo… let’s say for example that user is `bob`, UID=1000.

If I do `top -u bob`, I see all of the discourse processes (`unicorn`, `sidekiq`, etc)

Is there any way to change this behavior? `bob` isn’t the semantically correct user for all the discourse processes to be running as, regardless of the fact that I technically launched discourse as that user. Is the only alternative running the launcher from the `root` user directly? or can I specify a user from the launcher script to run these processes as?

As far as I understand docker, it’s supposed to be running as root, which is why the processes running under `bob` surprised me.

---

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