Skip to content

Commit

Permalink
Pull image using cli instead of docker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Oct 5, 2023
1 parent ac6b3cb commit ce618cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/docker_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
CONTAINER_LOGS_SEPARATOR
)
from tools.configs.logs import REMOVED_CONTAINERS_FOLDER_PATH
from tools.helper import run_cmd

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -366,8 +367,8 @@ def restart_all_schains(

def pull(self, name: str) -> None:
with DockerUtils.docker_lock:
repo, tag = name.split(':')
self.client.images.pull(repository=repo, tag=tag)
# repo, tag = name.split(':')
run_cmd(['docker', 'pull', name])

def pulled(self, name: str) -> bool:
with DockerUtils.docker_lock:
Expand Down

0 comments on commit ce618cb

Please sign in to comment.