Skip to content

[BUG] service is required by service but is disabled #10751

@nmguse-bighealth

Description

@nmguse-bighealth

Description

v2.19.0 introduced a change that broke a docker compose run command that was working previously (v2.18.1)

The change, I believe, would have come from this PR: #10602

docker compose -p unique_name run --rm --no-deps test black --line-length 150 --check app/ tests/

Error: service postgres is required by test but is disabled. Can be enabled by profiles []

I believe this is roughly all that would be required to reproduce, but I haven't directly tested this as docker mac hasn't updated docker compose yet:

version: "3"
services:
  test:
    profiles:
      - test
    build:
      context: .
    depends_on:
      postgres

  postgres:
    image: postgres:14-alpine

Steps To Reproduce

No response

Compose Version

v2.19.0

Docker Environment

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions