Skip to content

Commit a5df995

Browse files
yuvipandaminrk
andauthored
Clarify how kwargs is set
Co-authored-by: Min RK <[email protected]>
1 parent 3af3855 commit a5df995

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

repo2docker/docker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def __init__(self, *, parent):
7373
try:
7474
kwargs = docker.utils.kwargs_from_env()
7575
kwargs.update(self.extra_init_args)
76-
self._apiclient = docker.APIClient(version="auto", **kwargs)
76+
kwargs.setdefault("version", "auto")
77+
self._apiclient = docker.APIClient(**kwargs)
7778
except docker.errors.DockerException as e:
7879
raise ContainerEngineException("Check if docker is running on the host.", e)
7980

0 commit comments

Comments
 (0)