Create simple NGINX image

This readme we create simple NGINX image and illustrate docker command usage

Create an HTML file with the below content

<h1>Hello Team</h1>

Create a Dockerfile

# Filename: Dockerfile
FROM nginx
COPY index.html /usr/share/nginx/html/

Build the Docker Image

docker build -t zc-content-nginx .

Check the image

docker image ls

Run the container and expose

docker run --name zc-nginx -d -p 8080:80 zc-content-nginx

Test the container, browse to http://localhost:8080

Exec to the container

docker exec -it zc-nginx bash

Stop and delete the container

docker stop zc-nginx
docker rm zc-nginx