Step 1: Pull the latest image from docker hub (https://hub.docker.com)
docker pull nginxStep 2: Create a new directory on your machine from where you want to serve the html files.
mkdir nginx-htmlStep 3: cd into that directory
cd nginx-htmlStep 4: Create index.html and whatever files you like, using any text editor.
Step 5: Run this command to start the container
docker run -d -p 8000:80 -v /YOUR_HTML_FILES_ABSOLUTE_DIRECTORY_PATH:/usr/share/nginx/html --name my-nginx-container nginxdocker stop my-nginx-containerdocker start my-nginx-containerdocker rm my-nginx-containerdocker rm my-nginx-container -fThis project is licensed under the MIT License.