You can use the following command to check if the port mapping is successful:
docker ps
This command lists all running containers along with their port mappings. Look for the PORTS column in the output, which will show the host ports mapped to the container ports.
Additionally, you can inspect a specific container using:
docker inspect <container-name>
Replace <container-name> with the name or ID of your container. This will provide detailed information, including the port mappings under the NetworkSettings section.
