From b1dc711e577535edece5828e1a24b4abc63e1594 Mon Sep 17 00:00:00 2001 From: Ernst Date: Wed, 24 Jul 2024 17:31:48 +0200 Subject: [PATCH] fix: Sail share 504 timeout fix for linux hosts --- bin/sail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sail b/bin/sail index 32b935c7..cc4697f6 100755 --- a/bin/sail +++ b/bin/sail @@ -541,7 +541,7 @@ elif [ "$1" == "share" ]; then shift 1 if [ "$EXEC" == "yes" ]; then - docker run --init --rm -p "$SAIL_SHARE_DASHBOARD":4040 -t beyondcodegmbh/expose-server:latest share http://host.docker.internal:"$APP_PORT" \ + docker run --init --rm --add-host=host.docker.internal:host-gateway -p "$SAIL_SHARE_DASHBOARD":4040 -t beyondcodegmbh/expose-server:latest share http://host.docker.internal:"$APP_PORT" \ --server-host="$SAIL_SHARE_SERVER_HOST" \ --server-port="$SAIL_SHARE_SERVER_PORT" \ --auth="$SAIL_SHARE_TOKEN" \