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/
2.更新docker-compose的版本,但只能更新到1.8.0版本;
3.根据提示将“docker-compose.yml”放到根目录,然后屏蔽里面的“services”,会造成
ERROR: The Compose file './../../../docker-compose.yml' is invalid because:
Unsupported config option for x-common-env-variables: 'Clients_Notifications_Host'
Unsupported config option for services: 'app-service-rules'
Unsupported config option for volumes: 'db-data'
Unsupported config option for networks: 'edgex-network'
services.command contains an invalid type, it should be a string, or an array