clairctl
clairctl copied to clipboard
docker-compose up -d postgres raise error:Version in "./docker-compose.yml" is unsupported.
docker-compose up -d postgres
ERROR: Version in "./docker-compose.yml" is unsupported. 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/
my env:
Docker version 17.03.0-ce, build 60ccb22
docker-compose version 1.7.0, build 0d7bf73
You need a newer version of docker-compose, at least 1.13.0. Please refer(https://docs.docker.com/compose/install/ .