Skip to content

Commit d03069a

Browse files
committed
Always use docker.from_env
1 parent dc6c26b commit d03069a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/conftest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ def http_client() -> requests.Session:
2828
@pytest.fixture(scope="session")
2929
def docker_client() -> docker.DockerClient:
3030
"""Docker client configured based on the host environment"""
31-
if "DOCKER_SOCK" in os.environ:
32-
client = docker.DockerClient(base_url=os.environ["DOCKER_SOCK"])
33-
else:
34-
client = docker.from_env()
31+
client = docker.from_env()
3532
LOGGER.info(f"Docker client created: {client.version()}")
3633
return client
3734

0 commit comments

Comments
 (0)