Process Flow - Port mapping with -p flag
Start Docker Container
Use -p flag: hostPort:containerPort
Docker maps hostPort to containerPort
Host can access container service via hostPort
Container listens on containerPort internally
End
This flow shows how Docker uses the -p flag to connect a port on your computer (host) to a port inside the container, allowing access to container services.