#docker run -p 80:80 --name mynginx -v $PWD/html:/www -v $PWD/nginx.conf:/etc/nginx/nginx.conf -v $PWD/logs:/wwwlogs -d nginx
#docker logs mynginx
open() "/etc/nginx/nginx.conf" failed (13: Permission denied)
nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (13: Permission denied)
root@oracledb nginx]# docker run -i -t nginx /bin/bash
root@2c21f58950df:/# cd /etc/nginx/
root@2c21f58950df:/etc/nginx# ls -l
total 32
drwxr-xr-x. 2 root root 25 Jul 26 07:33 conf.d
-rw-r--r--. 1 root root 1007 Jul 11 13:06 fastcgi_params
-rw-r--r--. 1 root root 2837 Jul 11 13:06 koi-utf
-rw-r--r--. 1 root root 2223 Jul 11 13:06 koi-win
-rw-r--r--. 1 root root 3957 Jul 11 13:06 mime.types
lrwxrwxrwx. 1 root root 22 Jul 11 13:06 modules -> /usr/lib/nginx/modules
-rw-r--r--. 1 root root 643 Jul 11 13:06 nginx.conf
-rw-r--r--. 1 root root 636 Jul 11 13:06 scgi_params
-rw-r--r--. 1 root root 664 Jul 11 13:06 uwsgi_params
-rw-r--r--. 1 root root 3610 Jul 11 13:06 win-utf
新的镜像没有这个问题了。