Skip to content

Commit

Permalink
Merge pull request #150 from dpfaffenbauer/patch-1
Browse files Browse the repository at this point in the history
Check OrbStack IP before Docker Desktop IP
  • Loading branch information
alexz707 authored Mar 22, 2024
2 parents 336e178 + 6f2bcf8 commit 1b3791c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions files/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ EOF
# if XDEBUG_HOST is manually set
HOST="$XDEBUG_HOST"

# else if check if is Docker for Mac
# OrbStack
if [ -z "$HOST" ]; then
HOST=`getent hosts docker.for.mac.localhost | awk '{ print $1 }'`
HOST=`getent ahostsv4 host.internal | awk 'NR==1{ print $1 }'`
fi

# OrbStack
# else if check if is Docker for Mac
if [ -z "$HOST" ]; then
HOST=`getent ahostsv4 host.internal | awk 'NR==1{ print $1 }'`
HOST=`getent hosts docker.for.mac.localhost | awk '{ print $1 }'`
fi

# else get host ip
Expand Down

0 comments on commit 1b3791c

Please sign in to comment.