我正在尝试部署一个应用程序引擎应用程序,但无论我试图部署哪种代码,即使它是从它们的示例中获取的:
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'."我不擅长虔诚,所以我不知道该如何解决这个问题
发布于 2020-10-27 12:47:16
我最近也遇到过同样的问题。经过一番调查,发现这个问题已经在GCP问题跟踪器上报道过了:https://issuetracker.google.com/issues/171756486。
作为解决办法,更新app.yaml文件以包含runtime: go1.13。
更新:
使用runtime: go1.13部署只适用于第一次运行。当试图重新部署时,它仍然会失败。
更新2:
谷歌团队已经将这一问题退到了他们这边。(来源)
要使其工作,您需要将gcloud降级为315.0.0版本。
gcloud components update --version 315.0.0在此之后,部署将照常进行。
发布于 2020-10-25 19:18:44
我今天在AppEngine上灵活部署时遇到了同样的问题。我不认为这是你能做的。我在github上打开了一个问题,希望google云团队能够尽快修复它。
要了解信息,OP面临的问题是,当运行gcloud app deploy app.yaml时,他希望应用程序能够被部署。
云构建试图获取一个具有它不理解的媒体类型的图像。
Got:application/vnd.docker.distribution.manifest.list.v2+json Expected: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'."发布于 2020-10-28 19:05:10
谷歌对此臭虫票做出回应,称其降级为gcloud 315.0.0,这是我刚刚测试过的,它成功了。
gcloud components update --version 315.0.0
https://stackoverflow.com/questions/64517206
复制相似问题