-
git pull <this-repo> -
cd <this-repo> -
Build container with name
nginx-cont
docker build -t nginx-cont .
-
Start container
docker run --name nginx-cont -d -p 8080:80 nginx -
Check your docker-machine's IP address by
docker-machine ip defaultthis was192.168.99.100in my case -
http://192.168.99.100:8080/will show Nginx's default page
Note: nginx.conf is not used here for now.
Still WIP
Official build of Nginx Note: based on Debian https://hub.docker.com/_/nginx/