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 ps fails for version 2.0 of compose yml #2863
Comments
I don't think this is an issue with What version of docker-compose are you using? Version 2 is only supported by compose 1.6. If you're using 1.6, please provide a sample of |
I did have the same problem.
docker-compose was simply not at the latest version although the docker package was up to date :
|
|
@dzwicker please provide an example of the config file you're using, and the output of |
I've been struggling with the same issue but @dnephin just saved my time. I'd recommended that upgrade docker-compose to version ^1.6. It will solve this issue. |
Also for me this was due to running |
I have the same issue as above. I've checked my docker-compose version and it is 1.5.2. I tried upgrading it but it says it is the latest version. Does that mean docker-compose on ubuntu cannot handle version 2? |
I installed from https://github.com/docker/compose/releases and my problem was resolved. on 1.8 now. |
I have the same issue even after upgrading the docker-compose from 1.5.x to 1.8.1. My docker-compose version command gives the following output docker-compose version 1.8.1, build 878cff1 |
I have same Issue with version 1.12 $ docker-compose build $ date $ docker version |
$ cat docker-compose.yml |
@ismael74 what's the output of |
$ docker-compose version |
@ismael74 Version 2 of the file format is only supported by Compose 1.6+. |
Look at this thread, I following this article and it works fine for me in ubuntu 16.04 LTS |
Suddenly getting this error from my CI since 1.10 was released. 1.9 works fine. Fixed, was unrelated |
MisterGlass, what was the fix for your CI. I'm now getting this error from CircleCI, which is running docker-compose 1.10. |
@billwright We were doing the pip install with sudo, which caused issues. This thread might help you #4349 |
Thanks for the response. My solution was to change this line in my circleci.yml from this:
to this:
Apparently version 1.9 and above have a bug concerning version 2.0 yml files. |
@billwright thanks, that worked for me as well. Why oh why do I put myself through the horrible pain of running tests through docker-compose? :( |
The error message ist:
In file './common.yml' service 'version' doesn't have any configuration options. All top level keys in your docker-compose.yml must map to a dictionary of configuration options.
The text was updated successfully, but these errors were encountered: