Skip to content

Commit f06bc1c

Browse files
committed
read DOCKER_LOCALHOST from env
1 parent d2d67b1 commit f06bc1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devcluster/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_host_addr_for_docker() -> Optional[str]:
5555
if "darwin" in sys.platform:
5656
# On macOS, docker runs in a VM and host.docker.internal points to the IP
5757
# address of this VM.
58-
return "host.docker.internal"
58+
return os.getenv("DOCKER_LOCALHOST", "host.docker.internal")
5959

6060
# On non-macOS, host.docker.internal does not exist. Instead, grab the source IP
6161
# address we would use if we had to talk to the internet. The sed command

0 commit comments

Comments
 (0)