Skip to content

Commit 4738f32

Browse files
also catch from_env
1 parent 159cb43 commit 4738f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/testcontainers/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def get_docker_socket() -> str:
3636
if socket_path := environ.get("TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE", ""):
3737
return socket_path
3838

39-
client = docker.from_env()
4039
try:
40+
client = docker.from_env()
4141
socket_path = client.api.get_adapter(client.api.base_url).socket_path
4242
# return the normalized path as string
4343
return str(Path(socket_path).absolute())

0 commit comments

Comments
 (0)