I have an nginx container and a php-fpm container running together as my web server. I connect to it through a container running jwilder/nginx-proxy that exposes port 80. On beta8, xdebug was able to connect back to PhpStorm running on my Mac host. With beta9, it cannot.
As a temporary workaround, I’ve setup another loopback IP on my host:
sudo ifconfig lo0 alias 10.254.254.254
And in php.ini, I’ve set:
Is there another way to make this work besides setting up the new global IP address? Is there an address that services running in containers can use to reach back to the host?
xdebug.remote_connect_back=1 in php.ini, xdebug connects back to the Mac rather than to itself.
The xdebug logs report:
Log opened at 2016-04-29 02:12:12 I: Checking remote connect back address. I: Checking header 'HTTP_X_FORWARDED_FOR'. I: Remote address found, connecting to 172.17.0.1:9090. E: Could not connect to client. :-( Log closed at 2016-04-29 02:12:12
$ pinata diagnose -u OS X: version 10.11.4 (build: 15E65) Docker.app: version v1.11.0-beta9 Running diagnostic tests: [OK] docker-cli [OK] Moby booted [OK] driver.amd64-linux [OK] vmnetd [OK] osxfs [OK] db [OK] slirp [OK] menubar [OK] environment [OK] Docker [OK] VT-x Docker logs are being collected into /tmp/20160428-222036.tar.gz Most specific failure is: No error was detected Your unique id is: DE98ED6A-CF8C-42C0-B387-CB3A5C604478 Please quote this in all correspondence.