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 b5c7a1b commit 4872ea5Copy full SHA for 4872ea5
core/testcontainers/core/docker_client.py
@@ -41,7 +41,8 @@ def __init__(self, **kwargs) -> None:
41
42
if docker_host:
43
LOGGER.info(f"using host {docker_host}")
44
- self.client = docker.DockerClient(base_url=docker_host)
+ os.environ["DOCKER_HOST"] = docker_host
45
+ self.client = docker.from_env(**kwargs)
46
else:
47
self.client = docker.from_env(**kwargs)
48
self.client.api.headers["x-tc-sid"] = SESSION_ID
0 commit comments