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

don't fail trying to remove container with no candidate #9256

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Mar 9, 2022

What I did
mark "service not found" as ErrNotFound so we can filter this our trying to remove containers while none match. Then just dump a warning, but exit with 0.
includes e2e test to prevent such regression in the future.

Related issue
closes #9255

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

Verified

This commit was signed with the committer’s verified signature.
ndeloof Nicolas De loof
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof requested a review from glours March 9, 2022 15:24
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM

@glours glours merged commit 4d163f3 into docker:v2 Mar 9, 2022
@ndeloof ndeloof deleted the rm_empty branch March 9, 2022 15:49
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.

Attempting to remove a not created container throws a no such service error (2.3.x regression)
2 participants