xsshunter-express icon indicating copy to clipboard operation
xsshunter-express copied to clipboard

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

Open ebadfd opened this issue 3 years ago • 3 comments

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/

ebadfd avatar Jul 10 '21 00:07 ebadfd

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

Warlord711 avatar Jun 13 '22 09:06 Warlord711

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

petport avatar Nov 20 '22 17:11 petport

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

agathakazar avatar Feb 18 '23 19:02 agathakazar