We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 159cb43 commit 4738f32Copy full SHA for 4738f32
core/testcontainers/core/config.py
@@ -36,8 +36,8 @@ def get_docker_socket() -> str:
36
if socket_path := environ.get("TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE", ""):
37
return socket_path
38
39
- client = docker.from_env()
40
try:
+ client = docker.from_env()
41
socket_path = client.api.get_adapter(client.api.base_url).socket_path
42
# return the normalized path as string
43
return str(Path(socket_path).absolute())
0 commit comments