I download the image through the docker pull nginx:1.10 command and then run it. Where is nginx’s configuration file?
(1) Download image, docker pull nginx:1.10
(2) start the container, docker run -d -p 8080:80 nginx:1.10
The container is in
/etc/nginx/nginx.conf
Can be mounted by
docker run -d -p 8080:80 -v /data/nginx.conf:/etc/nginx/nginx.conf nginx:1.10