I am trying to compose docker-compose.yml which has version 3. when I run the command
docker-compose up -d
I get the following error
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 theversion
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 Overview | Docker Docs
I think I am using the latest version of docker compose
docker-compose version
docker-compose version 1.8.0, build unknown
docker-py version: 1.9.0
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
Is there I am missing. I so how do I upgrade docker compose to V 3
Thanks