NgInx with Docker

You need to pull docker image for nginx first with : docker pull nginx, the following command will run nginx on docker container by exposing port 80 to the public.

sudo docker run –name docker-nginx -p 80:80 -e TERM=xterm -d nginx

go to docker local:
docker exec -it CONTAINER_ID bash