Skip to content

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

Closed
@nocive

Description

@nocive

Description

Attempting to docker compose rm a not created container fails and throws a no such service: foo-service error.
This worked fine in previous 2.x versions before 2.3.x.

Steps to reproduce the issue:

  1. Remove a container with docker rm -fsv some-container
  2. Attempt to remove the same container again

Describe the results you received:
no such service: foo-service and non 0 exit status

Describe 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:

Docker Compose version v2.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions