This repository has been archived by the owner on Sep 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 880
Don't run as root #440
Labels
Milestone
Comments
What about adding a simple config to gunicorn to change user: http://docs.gunicorn.org/en/latest/settings.html#user Since we bind on 5000 by default, it should not be an issue. What I would do: From the Dockerfile:
|
dmp42
pushed a commit
that referenced
this issue
Jun 23, 2014
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <olivier@webitup.fr> (github: dmp42)
Merged
Note that this may not be backwards compatible for some users because of permission issues with local storage. |
👍 to elaborate, volume mounts are always mounted with root permissions, so you won't have RW access to the mount unless you explicitly |
The mechanism is in place to drop privileges - but yes, there are a number of other considerations to look at before this is ready. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
With the current
Dockerfile
, usingdocker run
as the README suggests means the service runs inside the container as root.The text was updated successfully, but these errors were encountered: