From b6b64ae184bb718d1aef850ae7e468a4ea6dde53 Mon Sep 17 00:00:00 2001 From: badrogger Date: Mon, 23 Oct 2023 15:51:40 +0000 Subject: [PATCH 1/2] Fix docker_utils pull --- tools/docker_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/docker_utils.py b/tools/docker_utils.py index 301fa87f9..72a611989 100644 --- a/tools/docker_utils.py +++ b/tools/docker_utils.py @@ -367,8 +367,8 @@ def restart_all_schains( def pull(self, name: str) -> None: with DockerUtils.docker_lock: - # repo, tag = name.split(':') - run_cmd(['docker', 'pull', name]) + repo, tag = name.split(':') + self.client.images.pull(repository=repo, tag=tag) def pulled(self, name: str) -> bool: with DockerUtils.docker_lock: From 1f872e06695657dd6be455300311ea116a09f6b3 Mon Sep 17 00:00:00 2001 From: badrogger Date: Mon, 23 Oct 2023 15:55:00 +0000 Subject: [PATCH 2/2] Fix flake8 --- tools/docker_utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/docker_utils.py b/tools/docker_utils.py index 72a611989..3dbbceb3d 100644 --- a/tools/docker_utils.py +++ b/tools/docker_utils.py @@ -46,7 +46,6 @@ CONTAINER_LOGS_SEPARATOR ) from tools.configs.logs import REMOVED_CONTAINERS_FOLDER_PATH -from tools.helper import run_cmd logger = logging.getLogger(__name__)