Open JulienPeloton opened 5 years ago
Actually, if you see this error message:
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/
you are using a too old version of docker-compose
.
I recently noticed on e.g. recent Ubuntu versions that apt-get installs super old version of docker-compose and therefore should not be used. Instead Linux users should follow the installation procedure explained in the docker-compose documentation: https://docs.docker.com/compose/install/
For macos users no difficulty however, docker-compose is packaged with the Docker Desktop for Mac and Docker Toolbox.