我尝试使用 AWS CodeBuild 构建 Docker 镜像
我遵循下面的 AWS 代码构建示例
https://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html
下面是我所做的。
我像这样编写 buildspec.yml。(与我在上一个链接中看到的完全相同)
buildspec.yml
我开始使用 aws CodeBuild 构建项目,但我收到此 Codebuild 日志错误消息:
YAML_FILE_ERROR 消息:此构建镜像不支持运行时版本选择。 <== 这个消息是什么意思?
除了 18 之外还有其他 docker 运行时版本吗?我该怎么办?
请帮忙...
最佳答案
修复后我收到以下错误。
2019/10/06 00:21:59 Phase context status code: YAML_FILE_ERROR Message:
Runtime version selection is not supported in version 0.1, see documentation
解决方案:
在这个问题上付出了很多努力后,我意识到是顶部的版本需要更正。我正在更改 ubuntu 镜像版本,但是
buildspec.yml
顶部的版本需要改变。 version: 0.2
phases:
install:
runtime-versions:
docker: 18
关于amazon-web-services - 构建项目时 AWS CodeBuild 错误 => YAML_FILE_ERROR 消息 : Runtime version selection is not supported by this build image,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56231957/