Skip to content

Commit

Permalink
Merge pull request #2002 from amazeeio/1088-xdebug-wrong-host
Browse files Browse the repository at this point in the history
Fix nslookup returns non-zero error code on 'host.docker.internal'
  • Loading branch information
Schnitzel authored Jul 10, 2020
2 parents 93490de + 21e0394 commit 2c4a274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/php/fpm/entrypoints/60-php-xdebug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c4a274

Please sign in to comment.