Skip to content
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 complains about invalid compose file (transferred issue) #4538

Closed
londoncalling opened this issue Feb 26, 2017 · 1 comment
Closed

Comments

@londoncalling
Copy link

@shin- @dnephin @dgageot

I'm opening this issue for @hindsight20-20, who first opened it in Docker for Windows issues.

Please see docker/for-win#527 for the full conversation thread.

Expected behavior

In compose file:

version: "3"
services:
  image: myimage
  myservice:
    healtcheck:
      test: exit 0

  image: myotherimage
  myotherservice:
    depends_on:
      myservice:
        condition: service_healthy

docker-compose up should start services in order and start second only if first is healthy. (see compose file reference and Dockerfile reference)

Actual behavior

when running docker-compose up compose complains that depends_on contains an invalid value. the contents of depends_on should be an array
compose is happily processing the file given above when setting the version to 2.1

Information

  • Docker for Windows 17.03.0-ce-rc1-win1 (1083)
  • Channel: beta
  • docker-compose 1.11.1
@shin-
Copy link

shin- commented Feb 26, 2017

Duplicate of #4305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants