I just installed Docker on my machine and set up the Nginx / PHP7 (FPM) / MySQL setup, but installing Xdebug in a PHP container, I canβt get it to connect to PHPStorm on my host machine.
Here is my PHP Xdebug configuration ...
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts- 20151012/xdebug.so xdebug.remote_log=/usr/local/var/log/xdebug.log xdebug.remote_enable=1 xdebug.remote_host=192.168.99.1 xdebug.remote_port=9000 xdebug.remote_connect_back=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_autostart=true
When viewing the cookie with the Xdebug installed, there is no connection invitation for the container. If I look at a locally hosted site, there is, so I know that PHPStorm is listening correctly.
On the local machine, I can connect to port 9000 ...
$ telnet 192.168.99.1 9000 Trying 192.168.99.1... Connected to 192.168.99.1. Escape character is '^]'. ^] telnet> quit Connection closed.
... however, I can neither from the boot VM, nor from the container. When I try, he sits there, doing nothing. However, both the virtual machine and the container can ping the host machines just fine.
I tried disabling the Mac firewall, but still not fun.
I'm not quite sure how to disable the firewall on VM2 boot2docker.
Any insight into why this will not work would be greatly appreciated. Thanks in advance.
Tobyg source share