docker compose的版本不能达到docker compose.yml文件要求的版本

“/docker compose.yml”中的版本要求为2.0或3.4,但我的docker compose的版本值Ubuntu16.04里面用“apt-get install”命令最高只能更新到1.18.0版本,造成版本不匹配错误。
docker-compose pull
ERROR: Version in "./docker-compose.yml" 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/

1.更改“docker-compose.yml”里面“services”的值,但改了就出错;

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

可以正常执行“docker-compose pull”命令,拉取服务镜像