Skip to content

Add simple docker prune functionality#4

Merged
veerendra2 merged 2 commits intomainfrom
implement-pruning
Feb 25, 2026
Merged

Add simple docker prune functionality#4
veerendra2 merged 2 commits intomainfrom
implement-pruning

Conversation

@veerendra2
Copy link
Owner

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a Docker “prune” step to ComposeFlux’s reconciliation loop, extending the Docker Compose client to call Docker Engine prune APIs after stack reconciliation.

Changes:

  • Extend pkg/dockercompose.Client with a Prune method and implement container/image/volume/network/build-cache pruning via the Docker Engine API client.
  • Invoke Docker pruning from Reconciler.Sync() after stack pruning.
  • Promote github.com/docker/docker to a direct dependency and update .gitignore.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
pkg/dockercompose/compose.go Adds Docker Engine client usage and implements Client.Prune() (containers/images/volumes/networks/build cache).
internal/reconcile/sync.go Calls Docker prune at the end of each sync cycle.
go.mod Makes github.com/docker/docker a direct requirement (previously indirect).
.gitignore Normalizes .direnv entry and adds *playground* ignore pattern.

@veerendra2 veerendra2 changed the title Add docker prune functionality Add simple docker prune functionality Feb 25, 2026
@veerendra2 veerendra2 merged commit caf459a into main Feb 25, 2026
1 check passed
@veerendra2 veerendra2 deleted the implement-pruning branch February 25, 2026 20:11
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