[BUG] service can't be used with `extends` as it declare `depends_on`
Problem
Description When trying to bring up a compose project that makes use of `extends` feature, I am getting the following error: [code block] Steps To Reproduce 1. Have a docker-compose.yml project with extends, like this: [code block] and the nginx/compose.yml: [code block] 2. `docker compose up` 3. See error: service "nginx" can't be used with `extends` as it declare `depends_on` Compose Version [code block] Docker Environment [code block] Anything else? _No response_
Error Output
error: service "nginx" can't be used with `extends` as it declare `depends_on`
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: [BUG] service can't be used with `extends` as it declare `depends_on`
encountering this too. why is a breaking change being included in a patch release at all?
Trust Score
8 verifications
- 1
encountering this too. why is a breaking change being included in a patch releas
encountering this too. why is a breaking change being included in a patch release at all?
Validation
Resolved in docker/compose GitHub issue #11544. Community reactions: 52 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep