8ctopus / apache-php-fpm-alpine

A docker web server with Apache and php-fpm on top of Alpine Linux for php developers
MIT License
39 stars 11 forks source link

host.docker.internal does not resolve #2

Closed 8ctopus closed 2 years ago

8ctopus commented 3 years ago

host.docker.internal does not resolve in alpine:edge version #114

8ctopus commented 3 years ago

If host.docker.internal does not resolve within the docker container, manually set the hostname ip address in etc\php7\conf.d\xdebug.ini so xdebug debugging works.

xdebug.client_host          = host.docker.internal
xdebug.client_host          = 192.168.65.2
8ctopus commented 3 years ago

host.docker.internal can be found using echo $(grep -Eo '\d{1,3}.\d{1,3}.\d{1,3}.' /etc/resolv.conf)2 within the container adding 2 to the end of the ip

8ctopus commented 2 years ago

Does not seem to occur anymore