Skip to content

fix --remove-orphans not to consider disabled services as orphaned#11204

Merged
ndeloof merged 1 commit intodocker:mainfrom
ndeloof:isOrphaned
Nov 20, 2023
Merged

fix --remove-orphans not to consider disabled services as orphaned#11204
ndeloof merged 1 commit intodocker:mainfrom
ndeloof:isOrphaned

Conversation

@ndeloof
Copy link
Copy Markdown
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

@ndeloof ndeloof requested review from a team, StefanScherer, glours, laurazard, milas, nicksieger and ulyssessouza and removed request for a team November 20, 2023 07:53
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