-
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
Docker Compose 2.3.3 does not start subsidiary services called out in links
#9301
Comments
2.4.0 still contains this bug. |
Ran a quick test with 2.4.0 trying to reproduce: services:
foo:
image: nginx
links:
- bar
bar:
image: nginx
so, basically "can't reproduce". |
The main difference I see is that we don't call a blanket Using your example above, if I call |
|
I am also hitting this issue with Adding |
#9368 has been merged, so this should be fixed by next release |
Description
docker-compose
v2.3.3 appears not to fully implement the dependency-starting behaviour oflinks
.will create
bar
but not start it.will ensure
bar gets started, but should be superfluous--
linksis explicitly documented to imply
depends_on`.Steps to reproduce the issue:
See snippets above -- create a
docker-compose.yml
that useslinks
and notdepends_on
.Describe the results you received:
Linked services that should be started are merely
created
.Describe the results you expected:
Linked services are created and started, as prerequisites of the linking service, as if they had been called out in
depends_on
.Additional information you deem important (e.g. issue happens only occasionally):
This behaviour was witnessed both on Arch Linux with
docker-compose
2.3.3, and on macOS Docker Desktop 4.6.0Output of
docker compose version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: