Docker stack deploy healthcheck in V3 docker-compose.yml not working in CoreOS Alpha 1339.0.0 #1848
Comments
It looks like docker is complaining that the depends_on:
- neo4j-999-601-test:
condition: service_healty [sic] |
Indeed, before docker healthchecks were supported (docker pre 1.12), @crawford : the code above will also break with error: The correct syntax for
and works in Alpha 1325.1.0 but is broken in Alpha 1339.0.0 |
It looks like Docker had several planned changes recently regarding @pmualaba as this looks like an upstream bug, I suggest you to report it directly to the docker/docker bug-tracker for better insights. |
Closing due to inactivity. |
According to docker-compose documentation:
|
@lloiacono any idea what we can do instead? (other than the wait-for-it script before the containers CMD) |
Any update for BelfordZ question? wait-for-it script seems like a workaround and not the right way to do it |
Any updates on this? |
the previous implementation seemed more intuitive. Is there any intention on bringing this functionality back? |
I'm totally agree with @JustinMascotto but I found the good explanation why did they do it peter-evans/docker-compose-healthcheck#3 (comment). |
Issue Report
Bug
The following command works perfectly in CoreOS Alpha 1325.1.0 but it does not work anymore in CoreOS Alpha 1339.0.0
On executing the following command in the latest CoreOS Alpha 1339.0.0 I now receive the following error:
**.depends_on must be a list**
$ docker stack deploy neo4j-test --compose-file=./docker-compose.yml
... in other container ... ;
V3 supports docker healthcheck
condition
parameter fordepends_on
directive. It seems that docker-compose.yml Version '3' format is not parsed correctly anymore?Container Linux Version
Alpha 1339.0.0
Environment
What hardware/cloud provider/hypervisor is being used to run Container Linux?
Expected Behavior
healtcheck and depends_on condition used in V3 docker-compose.yml file should not give error
**.depends_on must be a list**
when executing
docker stack deploy
in swarm mode.Actual Behavior
Reproduction Steps
Other Information
Feature Request
Environment
What hardware/cloud provider/hypervisor is being used to run Container Linux?
Desired Feature
Other Information
The text was updated successfully, but these errors were encountered: