in composer_local_dev/environment.py [0:0]
def pull_db_image(self):
try:
# TODO: (b/237054183): Print detailed status (progress bar of image pulling)
with console.get_console().status(constants.DB_PULL_IMAGE_MSG):
self.docker_client.images.pull(self.db_image_tag)
except (docker_errors.ImageNotFound, docker_errors.APIError):
logging.debug(f"Failed to pull database image ({self.db_image_tag}).", exc_info=True)
raise errors.ImageNotFoundError(self.db_image_tag) from None