Logs of nginx(non-root) container logs

  devops, docker, nginx

What additional permissions do I need in dockerfile in order to see the logs of the container, I can see the openshift pod is accessible but logs are not rolling

output of oc logs -f podname is as below

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh /docker-entrypoint.sh: Configuration complete; ready for start up

I am using nginx debian image

Permissions in dockerfile to the new user:

Source: Docker Questions