configuring nginx docker code example
Example 1: how to install nginx on docker
$ docker run --name mynginx1 -p 80:80 -d nginx
Example 2: dockerfile nginx example
$ docker run --name mynginx2 --mount type=bind,source=/var/www,target=/usr/share/nginx/html,readonly --mount source=/var/nginx/conf,target=/etc/nginx/conf,readonly -p 80:80 -d nginx