-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] [v2.32.1] run service that extends other service does not fulfill depends_on #12423
Comments
i'm getting the same behavior. Everything worked with Compose 2.31.0 and with 2.32.1 services are not being started. |
I came here to open the exact same issue, thanks for opening this! Here is my minimal reproduction: # docker-compose.a.yml
services:
service1:
image: nginx:alpine
# docker-compose.b.yml
services:
service2:
image: nginx:alpine
service3:
extends:
file: docker-compose.a.yml
service: service1
depends_on:
- service1 With v2.31.0 the
|
|
Yes, I think it's duplicate of #12421, although the |
My understanding is that v2.32.3 should have fixed this issue. However v2.32.4 still shows the same behaviour. |
Description
With version 2.32.1, when running
docker compose run <serviceA>
and<serviceA>
extends<serviceA_base>
and<serviceA_base>
depends_on
serviceB
, thedepends_on
clause is not fulfilled.I.e.
serviceA
runs without startingserviceB
.This did not happen with prior versions (2.31.0 and before).
Steps To Reproduce
test
directory the followingcompose.yaml
file:Because
hello-world-job
extendsjob-base
,hello-world-job
depends on the serviceredis
, that must have been started before startinghello-world-job
.3. from within the
test
directory, rundocker compose run --rm hello-world-job
. The output is:hello-world-job
has run but the container for the serviceredis
has not been created.4. install docker-compose-plugin version 2.31.0 (
sudo apt install docker-compose-plugin=2.31.0*
)5. run
docker compose run --rm hello-world-job
. The output is:The container for the service
redis
has been created and started before runninghello-world-job
. This is the expected result.Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: