Docker Community Forums

Share and learn in the Docker community.

Not able to use docker compose for Version 3

docker

(Tkdocimg) #1

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 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 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


(Tkdocimg) #2

Figured out the problem pointing to the wrong docker compose


(Mayracalves) #3

Hi, I’m having the same problem
Please, who knows how to fix this, help us!
Thanks