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 version important? #4

Closed
jessebot opened this issue Sep 10, 2018 · 1 comment
Closed

docker-compose version important? #4

jessebot opened this issue Sep 10, 2018 · 1 comment

Comments

@jessebot
Copy link

The default versions of docker.io and docker-compose that you install when you use the standard repos provided via apt-get in Ubuntu 16.04.3 complain when I run docker-compose --build:

$ sudo docker-compose up --build
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

I switched the version to 2 in the docker-compose.yml file, and it works, but was there something in 3 we needed to make all of this work, or is version 2 of the docker-compose engine sufficient?

@jessebot jessebot changed the title This is more of a question docker-compose version important? Sep 10, 2018
@kanishka-linux
Copy link
Owner

As far as Reminiscence is concerned, there is no difference between version 2 and 3 of docker-compose.yml file. Both can be used.

I haven't tested docker method on ubuntu-16.04, that's why I didn't know about docker-compose version available in it. Thanks for testing it out.

I'll add ubuntu-16.04 specific note in installation procedure.

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

No branches or pull requests

2 participants