I have docker container for experiments. So I don't know which ports I will use later when I trying new apps. Isn't it possible to access docker container application with ip/port from the host without exposing it in the docker-run command?
Docker for Mac is unable to route traffic to containers, and from containers back to the host.
https://docs.docker.com/docker-for-mac/networking/#i-cannot-ping-my-containers