echo "Hello World" > index.html
FROM nginx
COPY index.html /usr/share/nginx.html
Start docker & Build docker image from Dockerfile
sudo service docker start
docker build -t <folder-name> .
Run docker container from the image
docker run -p 8080:80 <image-name>