Doesn't run on OpenShift 4.5.0
Summary
Cant run on Openshift due to permission problems
Steps to reproduce
Run Nginx container on OpenShift 4.5.0
What is the current bug behavior?
Shows permission problems on directory creations on
- /var/cache/nginx/client_temp
- /var/cache/nginx/proxy_temp
After adding permission to this directory ('/var/cache/nginx/') it logs
2021/09/07 20:34:44 [emerg] 1#1: open() "/var/run/nginx.pid" failed (13: Permission denied)
nginx: [emerg] open() "/var/run/nginx.pid" failed (13: Permission denied)
What is the expected correct behavior?
It should run out of the box
Relevant logs and/or screenshots
2021/09/07 20:34:44 [emerg] 1#1: open() "/var/run/nginx.pid" failed (13: Permission denied)
nginx: [emerg] open() "/var/run/nginx.pid" failed (13: Permission denied)
Possible fixes
Need to add permission in the directory /var/cache/nginx/ and /var/run/nginx.pid
Defintion of Done
-
Bug has been identified and corrected within the container
/cc @ironbank-notifications/bug
Edited by Saumya