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 632e5f4 commit b791a1aCopy full SHA for b791a1a
core/testcontainers/core/config.py
@@ -33,12 +33,12 @@ def get_docker_socket() -> str:
33
if socket_path := environ.get("TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE"):
34
return socket_path
35
36
- client = docker.from_env()
37
try:
+ client = docker.from_env()
38
socket_path = client.api.get_adapter(client.api.base_url).socket_path
39
# return the normalized path as string
40
return str(Path(socket_path).absolute())
41
- except AttributeError:
+ except Exception:
42
return "/var/run/docker.sock"
43
44
0 commit comments