Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix local image removal when compose down is ran with --project-name #10558

Merged
merged 1 commit into from May 11, 2023

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented May 11, 2023

What I did
As previously noted in comment, with built image being tagged to make listing more deterministic, we don't need anymore to check service.image being set. Running with --project-name this attribute is always set, whenever it might not have been in the initial compose.yaml file.

Related issue
closes #9914

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@codecov
Copy link

codecov bot commented May 11, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.03 ⚠️

Comparison is base (b776826) 59.66% compared to head (e73d5c1) 59.63%.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10558      +/-   ##
==========================================
- Coverage   59.66%   59.63%   -0.03%     
==========================================
  Files         107      107              
  Lines        9324     9318       -6     
==========================================
- Hits         5563     5557       -6     
  Misses       3190     3190              
  Partials      571      571              
Impacted Files Coverage Δ
pkg/compose/image_pruner.go 79.83% <100.00%> (-0.94%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

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

LGTM!

(Btw I have zero recollection of writing that TODO)

@milas milas merged commit 0363d92 into docker:v2 May 11, 2023
24 checks passed
@ndeloof ndeloof deleted the down_rmi branch December 20, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker compose down --rmi local doesn't remove images when specified with --project-name
2 participants