Skip to content

Commit

Permalink
Added cleanup for input image after stub
Browse files Browse the repository at this point in the history
Signed-off-by: Anmol Virdi <[email protected]>
  • Loading branch information
Anmol Virdi committed Jul 1, 2024
1 parent f49004b commit c04b8e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions community_images/common/orchestrator/stub_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def generate_stub_for_tag_mappings(self, tag_mappings):

# Remove original input image to clean up space
logging.info(f"Removing original input image: [{input_tag_details.full_tag}]")
self.docker_client.images.remove(input_tag_details.full_tag)
self.docker_client.images.remove(input_tag_details.full_stub_tag)

@backoff.on_exception(backoff.expo, BaseException, max_time=3000) # 50 mins
Expand Down

0 comments on commit c04b8e5

Please sign in to comment.