Docker container mapping port failed

  docker, question

The missing exposed in my Dockerfile is 3000 port, run the following command:

docker run -P -d --name myexpress alpha/express

The results are as follows:
图片描述

But I tried to visit: localhost:32768, no result.
But when I got into the virtual machine, curl port 3000 was fruitful.

So my current situation is that the application (Express) in the container is running but cannot be accessed from outside. I think there is something wrong with the port mapping.
All great gods, give me some advice.

On the mac, you have to look at it this way. There is kitematic’s container management software.
图片描述