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 --remove-orphans not to consider disabled services as orphaned #11204

Merged
merged 1 commit into from Nov 20, 2023

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Nov 20, 2023

What I did
introduce isOprhaned predicate to filter container without a known service. Don't consider disabled service as "orphaned"
includes a test case to avoid such a regression in the future

Related issue
fixes #11203

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

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof requested review from a team, nicksieger, StefanScherer, ulyssessouza, glours, milas and laurazard and removed request for a team November 20, 2023 07:53
@ndeloof ndeloof merged commit 8e1b323 into docker:main Nov 20, 2023
24 checks passed
@ndeloof ndeloof deleted the isOrphaned branch November 20, 2023 20:35
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.

[BUG] v2.23.0 broke docker-compose down -v --remove-orphans NAME ?
2 participants