From 0b91b8ba744fbf03b9268c74fa1a35ff01b59c56 Mon Sep 17 00:00:00 2001 From: Olwe Samuel Date: Mon, 15 Jul 2024 19:04:20 +0300 Subject: [PATCH] Added default image on pull --- dotrun.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dotrun.py b/dotrun.py index 9a4e29a..33b754d 100644 --- a/dotrun.py +++ b/dotrun.py @@ -78,8 +78,10 @@ def _check_image_updates(self): print("Getting the dotrun image...") self._pull_image() - def _pull_image(self, image_name, no_exit=False): + def _pull_image(self, image_name=None, no_exit=False): """Pull the dotrun image (if updated) from Docker Hub""" + if not image_name: + image_name = self.base_image_name image_uri = self._get_image_name(image_name) repository, tag = image_uri.split(":") try: