Welcome! Log In Create A New Profile

Advanced

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

Scott Creeley
November 11, 2015 01:24PM
----- Forwarded Message -----
From: "Scott Creeley" <screeley@redhat.com>
To: nginx-devel@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)

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Scott Creeley 731 November 11, 2015 01:24PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 229
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready