What command can you use to check if the port mapping is successful?

099

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.

0 Comments

no data
Be the first to share your comment!