Fwd: openshift-nginx docker image running as non-root

Scott Creeley screeley at redhat.com
Wed Nov 11 18:23:38 UTC 2015



----- Forwarded Message -----
From: "Scott Creeley" <screeley at redhat.com>
To: nginx-devel at nginx.org
Sent: Wednesday, November 11, 2015 12:13:49 PM
Subject: openshift-nginx docker image running as non-root

Hi,
Been playing around with the https://github.com/nginxinc/openshift-nginx  dockerfile and trying to find a way to run run nginx as non-root with openshift/k8/docker.  Not having much luck, if I pass in a user or specify a user in the nginx.con or Dockerfile or via openshift/k8 runAsUser I always get some form permission errors.  Is there a way to do this or am I wasting my time messing with this?

nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2015/11/10 14:40:40 [warn] 1#1: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2015/11/10 14:40:40 [emerg] 1#1: mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)



More information about the nginx-devel mailing list