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/
чем не нравится версия подскажите? вроде свежий докер стоит
Docker version 18.06.0-ce, build 0ffa825
docker-compose какой версии? Для “3” нужен выше 1.10.0
Обсуждают сегодня