-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Depends_on condition service_completed_successfully #8154
Comments
service_completed_successfully
service_completed_successfully
Stumbled with the same problem on a service running Node. My
The message prompt by the terminal:
Any ideas? |
Same issue with the following docker-compose.yml:
Got this error:
|
I ran into the same issue. |
@ulyssessouza @aiordache any chance either of you could look at this? |
@jruizvar @ashishchandr70 @peterroelants You have used docker-compose.yml file with string Version 3+ have changes:
Look at https://docs.docker.com/compose/compose-file/compose-file-v3/#depends_on |
@devopscoder331 I've been using |
Okey, but Compose file versions 3+ don't support the condition form of depends_on. |
That is why I labeled the issue as kind/feature, in order to have the feature back. |
Ooops :) now I get it |
Weird, because I can use things like:
It's just that the |
Hi. Support for |
Cool, I wasn't aware of the new release a few days ago. I can confirm that with |
I was looking for exactly this and defined an
…in the log output. I'm using the |
@augustsaintfreytag |
Can anyone confirm |
@rf-0 at least there's an end-to-end test to check it works :P https://github.com/docker/compose-cli/blob/main/pkg/e2e/compose_test.go#L167 Please report issue on docker/compose-cli repo, and if possible attach a reproduction scenario demonstrating your issue. |
Without this docker-compose complains about depends_on config settings: > ERROR: The Compose file './docker-compose.yml' is invalid because: > services.tink-server.depends_on.generate-tls-certs.condition contains "service_completed_successfully", which is an invalid type, it should be a service_started, or a service_healthy > services.web-assets-server.depends_on.fetch-and-convert-ubuntu-img.condition contains "service_completed_successfully", which is an invalid type, it should be a service_started, or a service_healthy > services.registry.depends_on.generate-tls-certs.condition contains "service_completed_successfully", which is an invalid type, it should be a service_started, or a service_healthy This was due to docker/compose#8154. Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
In what version (3.?) did service_healthy work correctly as claimed here, please? |
3.9 |
The `depends_on` `service_completed_successfully` config in the compose file requires docker compose 1.29.0 actually. See https://github.com/docker/compose/releases/tag/1.29.0 and docker/compose#8154 Closes #230
The `depends_on` `service_completed_successfully` config in the compose file requires docker compose 1.29.0 actually. See https://github.com/docker/compose/releases/tag/1.29.0 and docker/compose#8154 Closes #230
The `depends_on` `service_completed_successfully` config in the compose file requires docker compose 1.29.0 actually. See https://github.com/docker/compose/releases/tag/1.29.0 and docker/compose#8154 Closes #230
The `depends_on` `service_completed_successfully` config in the compose file requires docker compose 1.29.0 actually. See https://github.com/docker/compose/releases/tag/1.29.0 and docker/compose#8154 Closes #230
The `depends_on` `service_completed_successfully` config in the compose file requires docker compose 1.29.0 actually. See https://github.com/docker/compose/releases/tag/1.29.0 and docker/compose#8154 Closes #230
|
|
As v1 is depricated what version of docker compose is supporting for depends on condition service_completed_successfully ? |
Docker Compose v2 supports |
When I follow the standard installation of docker, I get both a
and
When I try with the |
@jhf check |
True @ndeloof , I have since removed that obsolete |
@jhf |
Good news indeed 👍 |
That's great to hear!
…On Mon, 18 Dec, 2023, 5:27 pm Jørgen H. Fjeld, ***@***.***> wrote:
@jhf <https://github.com/jhf> version: "x.y" in your compose file is
obsolete, since Compose Specification was introduced 3 years ago. Forget
about "*version 2 of the syntax, and not in version 3*" logic, all
attributes are now supported.
Good news indeed 👍
—
Reply to this email directly, view it on GitHub
<#8154 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3LILYSRA5I36NG2KXT6AYDYKAVRDAVCNFSM4YFKTYOKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBWGAZDSMBZGYYQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Description of the Issue
I wrote a compose file
docker-compose.yml
with two services and the optiondepends_on
in one of the services:According to compose-spec:
However, the execution of
docker-compose up
yields:Environment
The text was updated successfully, but these errors were encountered: