From a67983e8bbe8045226fd3290dc0ae68e91670edd Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Fri, 26 Jun 2020 17:45:11 -0500 Subject: [PATCH] Fix nslookup returns non-zero error code on 'host.docker.internal' --- images/php/fpm/entrypoints/60-php-xdebug.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/php/fpm/entrypoints/60-php-xdebug.sh b/images/php/fpm/entrypoints/60-php-xdebug.sh index 5bd0959a0e..1d05a274f1 100755 --- a/images/php/fpm/entrypoints/60-php-xdebug.sh +++ b/images/php/fpm/entrypoints/60-php-xdebug.sh @@ -3,7 +3,7 @@ # Tries to find the Dockerhost get_dockerhost() { # https://docs.docker.com/docker-for-mac/networking/#known-limitations-use-cases-and-workarounds - if busybox timeout 1 busybox nslookup host.docker.internal &> /dev/null; then + if busybox timeout 1 busybox nslookup -query=A host.docker.internal &> /dev/null; then echo "host.docker.internal" return fi