diff --git a/tools/docker_utils.py b/tools/docker_utils.py index 301fa87f9..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__) @@ -367,8 +366,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: