Docker stack deploy healthcheck in V3 docker-compose.yml not working in CoreOS Alpha 1339.0.0

929 views
Skip to first unread message

Patrick Mualaba

unread,
Mar 4, 2017, 5:14:55 AM3/4/17
to CoreOS Dev
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

version: '3'

services:

neo4j-999-601-test:
image: neo4j:3.1.1
ports:
- "7474:7474"
- "7687:7687"
networks:
- neo4j-test
healthcheck:
test: ["CMD-SHELL", "curl -f http://neo4j-999-601-test:7474 && echo 'OK'"]
interval: 5s
timeout: 2s
retries: 3


    depends_on:
neo4j-999-601-test:
condition: service_healty


V3 supports docker healthcheck condition parameter for depends_on directive. It seems that docker-compose.yml Version '3' format is not parsed correctly anymore?

 



Geoff Levand

unread,
Mar 6, 2017, 2:31:22 PM3/6/17
to coreo...@googlegroups.com
On 03/04/2017 02:14 AM, Patrick Mualaba wrote:
> The following command works perfectly in CoreOS Alpha* 1325.1.0* but it does not work anymore in CoreOS Alpha *1339.0.0*

Probably best to enter a bug at https://github.com/coreos/bugs

-Geoff

Reply all
Reply to author
Forward
0 new messages