|
发表于 2020-5-21 18:33:23
|
显示全部楼层
按照上面方法操作后,执行docker-compose up提示如下错误,是什么原因?
app: zhongkang host: af04da50-0d24-4fdc-b03b-5b791d9f697c cmd.run_all 执行失败 , target: host-eeed0eb935ed4377a355de6c3e742c44 ---- SaltResponse ---- success:true reason: OK data: {"return": [{"host-eeed0eb935ed4377a355de6c3e742c44": {"pid": 17325, "retcode": 1, "stderr": "The Compose file './docker-compose.yaml' is invalid because:\nInvalid top-level property \"netwORks\". Valid top-level sections for this Compose file are: services, version, networks, volumes, and extensions starting with \"x-\".\n\nYou 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.\nFor more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/\nUnsupported config option for services.tomcat-zhongkang: 'loGGing'", "stdout": ""}}]} |
|