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.