In docker if you wish to find the port of a running container you can run the following command

docker port container_name