This practical demonstrates verification of Docker Desktop installation, testing Docker Engine connectivity through CLI and REST API, and deploying a production-ready Nginx container. It focuses on understanding container lifecycle management and real-world DevOps deployment workflow.
docker --version
docker version
docker info
docker ps
docker ps -a
(Ensure Docker Desktop setting: “Expose daemon on tcp://localhost:2375 without TLS” is enabled)
curl http://localhost:2375/_ping
curl http://localhost:2375/version
curl http://localhost:2375/v1.43/containers/json
curl "http://localhost:2375/v1.43/containers/json?all=true"
docker pull nginx
docker images
docker create --name mynginx -p 8080:80 nginx
docker start mynginx
docker ps
Access in browser:
http://localhost:8080
docker inspect mynginx
docker stop mynginx
docker rm mynginx
docker ps -a
Pull → Create → Start → Inspect → Stop → Remove
This practical strengthened understanding of Docker architecture, daemon communication, REST API interaction, and production-ready container deployment using Nginx. It demonstrates core DevOps container workflow implementation in a Windows-based environment.