我创建了asp.net mvc项目的windows容器并将其推送到docker hub。我想使用 aws codebuild 和 aws pipeline 服务在 .net 项目中实现 CI/CD。
当我启动 CodeBuiding 时,它给出以下错误。
BUILD_CONTAINER_UNABLE_TO_PULL_IMAGE:无法拉取客户的容器镜像。 CannotPullContainerError:基于 Windows 版本 10.0.17763 的镜像与 10.0.14393 主机不兼容
最佳答案
如果您在适用于 Windows Server 2019 的 Docker 上构建镜像,将其推送到 DockerHub/ECR,然后尝试在 CodeBuild 中使用它,它将无法工作并抛出您目睹的错误。
这是因为底层主机是 Windows Server 2016 并且镜像不兼容 [1]。
CodeBuild 团队将添加对 Server 2019 的支持,但没有预计时间。
引用:
关于amazon-web-services - AWS 代码构建 | docker |无法拉取客户的容器镜像 |基于 Windows 版本 10.0.17763 的镜像与 10.0.14393 主机不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58541551/