Skip to content

2.5.0 regression: up with --force-recreate + --no-deps leads to "no such service" errors for dependent services #9427

Closed
@nocive

Description

@nocive

Description

Bringing a container up using a combination of the --force-recreate and --no-deps flags consistently leads to "no such service" errors for dependent services of the target service.
This works without problems with 2.4.1 but not in 2.5.0.

Steps to reproduce the issue:

  1. docker compose up -d --force-recreate --no-deps SOME_SERVICE

Describe the results you received:
"no such service: some-dependent-service"

Describe the results you expected:
Container to be recreated and started without errors

Additional information you deem important (e.g. issue happens only occasionally):
Issue happens consistently with 2.5.0 but doesn't happen with 2.4.1.

Output of docker compose version:

Docker Compose version v2.4.1

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