From c6eee11dd86e26f6b8266d43eb59f1d1726b8e56 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 7 Mar 2018 13:41:53 +0100 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8ce8604..a0c2224 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,7 +5,7 @@ GATEWAY=$(ip route | grep '^default' | cut -d' ' -f3) # mac specific docker gateway GATEWAY_MAC="$(getent hosts docker.for.mac.host.internal | cut -d' ' -f1)" -if [ -z "$GATEWAY_MAC" ]; then +if [ -n "$GATEWAY_MAC" ]; then GATEWAY=$GATEWAY_MAC fi