Paulo Leal
May 04, 2016 05:26PM
Hi,

I have 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.
I am currently getting the error:
nginx: [alert] could not open error log file: open()
"/var/log/nginx/error.log" failed (13: Permission denied)
2016/05/04 20:51:09 [warn] 1#1: the "user" directive makes sense only if
the master process runs with super-user privileges, ignored in
/etc/nginx/nginx.conf:5
2016/05/04 20:51:09 [emerg] 1#1: open() "/etc/nginx/conf.d/default.conf"
failed (13: Permission denied) in /etc/nginx/nginx.conf:33

I have alredy added to my Dockerfile:
Run ...
&& chmod 777 /etc/nginx/nginx.conf \
&& chmod 777 /var/run \
&& chmod 777 /etc/nginx/conf.d/default.conf

I also run bash on the container and was albe to "cat" the "default.conf"
and the "nginx.conf" files.

I am not sure if its the correct place to put this question, but I got here
from
http://mailman.nginx.org/pipermail/nginx-devel/2015-November/007511.html
(as you can notice, I have copied the beginning of the email from Scott´s
email. Hope you don´t mind!=o) )

Best regards,

Paulo Leal
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

openshift-nginx docker image running as non-root

Paulo Leal May 04, 2016 05:26PM

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

Francis Daly May 04, 2016 05:52PM

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

Aleksandar Lazic May 05, 2016 11:58AM

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

Paulo Leal May 05, 2016 01:16PM

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

Aleksandar Lazic May 06, 2016 08:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 318
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