Skip to content

Cleanup of Local Docker Images#291

Open
Giabbi wants to merge 34 commits intoec2-new-implementationfrom
giancarlo/cleanup-docker
Open

Cleanup of Local Docker Images#291
Giabbi wants to merge 34 commits intoec2-new-implementationfrom
giancarlo/cleanup-docker

Conversation

@Giabbi
Copy link
Copy Markdown
Member

@Giabbi Giabbi commented Apr 17, 2026

Changes proposed in this PR:

  • Added a finally block to the _build_and_push_task thread in ecrBuilder.py to guarantee local Docker cleanup executes regardless of whether the build succeeds or fails.
  • Implemented forceful deletion (force=True) of the final compiled ECR image and any pulled base templates from the local EC2 instance to prevent long-term storage bloat.
  • Added an automatic garbage collection step using docker_client.images.prune(filters={'dangling': True}) to instantly remove orphaned intermediate cache layers, actively reclaiming disk space after every build run.

Giabbi and others added 30 commits April 3, 2026 22:52
@Giabbi Giabbi requested a review from coder6583 April 17, 2026 01:39
@Giabbi Giabbi self-assigned this Apr 17, 2026
Comment thread vmms/ecrBuilder.py Outdated
Base automatically changed from somanarita/ecr-autolab-integration to ec2-new-implementation April 17, 2026 19:38
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.

3 participants