Skip to content

Always clean up intermediate multiplatform images on exit#232

Merged
shanejbrown merged 2 commits intoadobe:mainfrom
shanejbrown:cleanup_intermediate_images
Feb 27, 2026
Merged

Always clean up intermediate multiplatform images on exit#232
shanejbrown merged 2 commits intoadobe:mainfrom
shanejbrown:cleanup_intermediate_images

Conversation

@shanejbrown
Copy link
Contributor

@shanejbrown shanejbrown commented Feb 27, 2026

Summary

Intermediate per-platform Docker images created during multiplatform builds were left behind in the local Docker daemon after buildrunner finished. This change ensures they are always removed when the MultiplatformImageBuilder context manager exits.

Changes

  • Add _cleanup_intermediate_images() method to MultiplatformImageBuilder that iterates over all built platform images and force-removes them from the local Docker daemon
  • Call the cleanup in __exit__ before stopping the local registry, so images are removed regardless of success or failure
  • Bump version from 3.24 to 3.25

Merge requirements satisfied?

  • I have updated the documentation or no documentation changes are required.
  • I have added tests to cover my changes.
  • I have updated the base version in pyproject.toml (if appropriate).

@shanejbrown shanejbrown merged commit 2682638 into adobe:main Feb 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants