I use itdocker run -it -v $PWD/website:/var/www/html/website gerbawn/nginx /bin/bash
A docker container was started, but I was unable to view the contents of the mount directory in the container.
I have changed the directory permission to 777, but I still cannot view it.
My environment: centos7 system in vmware, and the basic image used by the container is centos7.
Rw can be added to see
docker run -it -v $PWD/website:/var/www/html/website:rw gerbawn/nginx /bin/bash