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

ERROR: Version in "./docker-compose.yml" is unsupported. #8

Open
ebadfd opened this issue Jul 10, 2021 · 3 comments
Open

ERROR: Version in "./docker-compose.yml" is unsupported. #8

ebadfd opened this issue Jul 10, 2021 · 3 comments

Comments

@ebadfd
Copy link

ebadfd commented Jul 10, 2021

im getting the below error while doing docker-compose up -d postgresdb

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 supported version (e.g "2.2" or "3.3") 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/

@Warlord711
Copy link

I had same error, Docker Compose 1.25.
Just replace the docker-compose binary with the latest one from https://github.com/docker/compose/releases

@petport
Copy link

petport commented Nov 20, 2022

For some reason, at the first line of docker-compose.yml has version: "3.9". Just change it to either 2.2 or 3.3

@agathakazar
Copy link

Changing to 3.7 worked for me

Debian 11.1
docker-compose version 1.25.0, build unknown
Docker version 20.10.5+dfsg1, build 55c4c88

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

4 participants