Skip to content

Commit

Permalink
run_container does not retrun anything
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Oct 11, 2023
1 parent a423696 commit 1747989
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli/docker_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,12 @@ def download_container_image(self):
logger.info(f"Pulling container ({container_image}) image")
try:
run_command_with_output("pull container image", f"{self.docker_path} pull {container_image}:{container_tag}")
# Give the pull command some time to complete
time.sleep(5)
if not self.run_container():
raise RuntimeError(f"Container ({self.container_name}) could not be started")
except subprocess.CalledProcessError as ex:
logger.error(ex)
raise RuntimeError(f"Cannot pull container ({container_image}) image")
# Give the pull command some time to complete
time.sleep(5)
self.run_container()

def verify_docker_env(self):
self.verify_docker_is_installed()
Expand Down

0 comments on commit 1747989

Please sign in to comment.