Command used:
docker pull nginx

Command used:
docker run -d -p 8080:80 nginx
This command runs the NGINX container in detached mode and maps port 8080 of the host machine to port 80 of the container.

Command used:
docker ps
This command displays all currently running containers.

Commands used:
docker stop
These commands stop the running container and remove it from the system.

Command used:
docker rmi nginx
This command removes the NGINX image from the local Docker repository.

In this experiment, Docker was successfully used to pull images, run containers, and manage their lifecycle.
The NGINX image was downloaded and executed with proper port mapping to allow access through the host system.
Running containers were verified using Docker commands.
Containers were safely stopped and removed after use.
Finally, the Docker image was deleted to free system resources.
This experiment demonstrates the basic working of Docker and its importance in container-based application deployment.