0
The host is a MAC OS with Docker installed and a container with php and Xdebug configured.
I try to start a debug session in Intellij but it is not working.
My hypothesis is that since the host can’t find the Docker container, the IDE can’t find the container. Here is an example of how the Xdebug.
When I try to ping my host that’s what I find:
- Container IP =>
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' 64ad351e115f
//Shows 172.17.0.2 - Container ping =>
How do I expose the container?
If I’m not mistaken, by default (unless you’ve configured it differently) containers run on isolated networks of your host, test with: Docker run -it <container-id-here> ping 172.17.0.2. Maybe the Expose also help you.
– Tom Melo
Tom I start the container with -p80:80 and -P9000:9000.
– zwitterion