The mapped ports can be accessed via the Docker API in the containers endpoint
The information is exposed in the cli via:
docker port CONTAINER
The same information can be pulled from docker inspect, which allows you to format the output how you want with --format
docker inspect CONTAINER --format