-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[BUG] service is required by service but is disabled #10751
Copy link
Copy link
Closed
Labels
Description
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
Reactions are currently unavailable