-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Attempting to remove a not created container throws a no such service
error (2.3.x regression)
#9255
Comments
I'm seeing the same behavior on |
Ran a quick test services:
foo:
image: alpine
command: echo hello
depends_on:
- bar
bar:
image: alpine
command: echo hello
Can you please provide a reproduction scenario? |
Remove the service once, attempt to remove again. |
oh ok. |
Correct, please feel free to refine the issue description as it's not accurate :-) Keeping the old behavior is extremely convenient for us as we have some tooling around compose that will attempt to remove a user specified list of containers upfront before building. |
no such service
error (2.3.x regression)no such service
error (2.3.x regression)
Description
Attempting to
docker compose rm
a not created container fails and throws ano such service: foo-service
error.This worked fine in previous 2.x versions before 2.3.x.
Steps to reproduce the issue:
docker rm -fsv some-container
Describe the results you received:
no such service: foo-service
and non 0 exit statusDescribe the results you expected:
0 exit status
Additional information you deem important (e.g. issue happens only occasionally):
Relates to #9241
Output of
docker compose version
:The text was updated successfully, but these errors were encountered: