Description of problem: Nginx:1.12 image build on rhel base image is not showing stdout logs output.
Steps to Reproduce:
1. oc new-app --template=nginx-example
2. oc logs <nginx-pod-name>
It should show nginx log:
Like nginx server is running on a particular port
For rhel image there is no soft link created to redirect the access.log file content from inside the container to stdout
Difference between centos and rhel base nginx image
Above 2 lines are not in rhel base nginx image
Any updates on this one?
Thanks for the report. We're working on updating the image to fix this.
This is now fixed for the next update to the containers. By default the nginx images will produce access logs on stdout and error logs on stderr, both of which should be available via "oc logs". Alternatively, if the NGINX_LOG_TO_VOLUME environment variable is set when running the container, the logs are available at /var/log/nginx/access.log and /var/log/nginx/error.log inside the filesystem.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.