首页 > 解决方案 > 谷歌云:构建总是失败,MANIFEST_UNKNOWN 错误

问题描述

我正在尝试部署一个应用程序引擎应用程序,但无论我尝试部署哪个代码,即使它是从他们的示例中获取的:

https://github.com/GoogleCloudPlatform/golang-samples

我犯了同样的错误:

Step #1: error building image: getting stage builder for stage 0: MANIFEST_UNKNOWN: "Manifest with digest 'sha256:249859465bcde1cb15128ff0d9eb2bb54de67f72a834a7576e6649cfe0a27698' has media type 'application/vnd.docker.distribution.manifest.list.v2+json', but client accepts 'application/vnd.docker.distribution.manifest.v2+json'."

我不擅长devops,所以不知道如何解决这个问题

标签: google-app-enginegoogle-cloud-platformgoogle-cloud-build

解决方案


我今天在 AppEngine Flexible 上部署时遇到了同样的问题。我不认为这是你能做的事情。我在 github 上打开了一个问题,希望谷歌云团队能够快速修复它。

对于信息,OP 的问题是在运行时gcloud app deploy app.yaml 他希望应用程序确实被部署。

Cloud Build 会尝试获取其不理解的媒体类型的图像。

得到:application/vnd.docker.distribution.manifest.list.v2+json 预期:application/vnd.docker.distribution.manifest.v2+json

Step #0: gcr.io/gcp-runtimes/go1-builder@sha256:7b53332a8e6418ba9a3f123c29dd5fe075504d0f9c0b683edfc7e7b75cd27822
Finished Step #0
Starting Step #1
Step #1: Already have image (with digest): gcr.io/kaniko-project/executor@sha256:f87c11770a4d3ed33436508d206c584812cd656e6ed08eda1cff5c1ee44f5870
Step #1: INFO[0000] Downloading base image gcr.io/distroless/base@sha256:884ac2144c3ee154bd67271e99bc6ef00f430092750167729b0321ab55fde5ec 
Step #1: error building image: getting stage builder for stage 0: MANIFEST_UNKNOWN: "Manifest with digest 'sha256:884ac2144c3ee154bd67271e99bc6ef00f430092750167729b0321ab55fde5ec' has media type 'application/vnd.docker.distribution.manifest.list.v2+json', but client accepts 'application/vnd.docker.distribution.manifest.v2+json'."

推荐阅读