我正在尝试测试此项目https://github.com/saan099/sawtooth-test
但是在执行docker-compose up
命令时我发现了这个问题:
ERROR: Version in "./docker-compose.yaml" 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/
我试图改变另一个版本,但我仍然有同样的问题。如果你能帮助我,我将非常感激。
这些是我的docker版本和我的docker-composer版本:
>>> ~/sawtooth-test $ docker --version
Docker version 1.13.1, build 092cba3
>>> ~/sawtooth-test $ docker-compose version
docker-compose version 1.8.0, build unknown
docker-py version: 1.9.0
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
但是当我把这个docker-compose --version
>>> ~/sawtooth-test $ docker version
Client:
Version: 1.13.1
API version: 1.26
Go version: go1.6.2
Git commit: 092cba3
Built: Thu Nov 2 20:40:23 2017
OS/Arch: linux/amd64
>>> ~/sawtooth-test $ docker-compose --version
docker-compose version 1.8.0, build unknown
提前谢谢你。
答案 0 :(得分:0)
将您的java.sql.*
文件的第一行更新为docker-compose.yml
,而不是version: '3'
以下是与Docker-Compose版本有关的更多信息。
https://docs.docker.com/compose/compose-file/compose-versioning/
答案 1 :(得分:-2)
go和nano到 docker-compose.yaml
编辑版本:“ 2”到“ 2”
const items = [
'this/is/path1', //path
'this/is/path2',//others.two
'this/is/path3'//others.three
];
最终应该解决您的问题