/docker-compose.yml" is unsupported. You 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.
时间: 2024-04-27 22:24:50 浏览: 404
这个错误是由于使用了不支持的Compose文件版本导致的。Compose文件的版本应该是 "2.2" 或 "3.3",并且服务定义应该放在 services
关键字下面。如果你没有指定 version
关键字,那么你应该把服务定义放在文件的根目录下,以使用版本1。你需要检查你的Compose文件的版本,并根据需要更新版本号。如果你不确定应该使用哪个版本,可以参考Compose文档中的版本说明。
相关推荐










