dockerdocker-for-mac

Docker access container IP/Port directly


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?


Solution

  • 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