Skip to content

Commit a8d4afb

Browse files
authored
feat: add alternative to TC_HOST as in Java / .NET
1 parent 928af5a commit a8d4afb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/testcontainers/core/docker_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def host(self) -> str:
9595
# https://github.com/testcontainers/testcontainers-go/blob/dd76d1e39c654433a3d80429690d07abcec04424/docker.go#L644
9696
# if os env TC_HOST is set, use it
9797
host = os.environ.get('TC_HOST')
98+
if not host:
99+
host = os.environ.get('TESTCONTAINERS_HOST_OVERRIDE')
98100
if host:
99101
return host
100102
try:

0 commit comments

Comments
 (0)