Skip to content

Commit

Permalink
fix: fix seperator for DOCKER_HOSTNAMES to tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Bengt Brodersen committed Jan 30, 2023
1 parent 8e35b3d commit fa5423b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/sh

# Use unofficial strict mode of Bash:
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# Use unofficial strict mode of Bash: http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
c=$'\n\t'

# --- Ensure container network capabilities ----------------------------------

Expand Down Expand Up @@ -37,14 +35,13 @@ else
# Check if we can resolve some special hostnames
# docker - host.docker.internal
# podman - host.containers.internal
DOCKER_HOSTNAMES="host.docker.internal host.containers.internal"
DOCKER_HOSTNAMES=$'host.docker.internal\thost.containers.internal'
docker_host_ip=""

for docker_hostname in $DOCKER_HOSTNAMES
do
docker_host_source="$docker_hostname"
docker_host_ip="$(_resolve_host "$docker_hostname")"

if [ "$docker_host_ip" ]
then
break
Expand Down

0 comments on commit fa5423b

Please sign in to comment.