summaryrefslogtreecommitdiffstats
path: root/build/download/docker_downloader.py
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-11-25 09:13:41 +0200
committerSamuli Silvius <s.silvius@partner.samsung.com>2019-11-25 09:13:41 +0200
commit3c6f676f8f50ac796804900c0ba1e3d9ffc1ff29 (patch)
treef7ab49b3578b3825bbb62ae4a3a9cbae7594a46a /build/download/docker_downloader.py
parentcb93bcee2dc49826964f8400420fe6d375ed3662 (diff)
Downloading docker images does not work on Windows
Changing build/download/docker_downloader.py to connect docker engine in more default way i.e. taking engine parameters from environment fixes this script. Issue-ID: OOM-2223 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Change-Id: Iddf69593bb4cf4596e713c8d537a90424c5925ef
Diffstat (limited to 'build/download/docker_downloader.py')
-rwxr-xr-xbuild/download/docker_downloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/download/docker_downloader.py b/build/download/docker_downloader.py
index d83f682c..27dde12f 100755
--- a/build/download/docker_downloader.py
+++ b/build/download/docker_downloader.py
@@ -40,7 +40,7 @@ class DockerDownloader(ConcurrentDownloader):
self._save = save
try:
# big timeout in case of massive images like pnda-mirror-container:5.0.0 (11.4GB)
- self._docker_client = docker.client.DockerClient(version='auto', timeout=300)
+ self._docker_client = docker.from_env(timeout=300)
except docker.errors.DockerException as err:
log.exception(
'Error creating docker client. Check if is docker installed and running'