google-app-engine - 谷歌云:构建总是失败,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,所以不知道如何解决这个问题
解决方案
我今天在 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'."
推荐阅读
- postgresql - postgres:更改用户不更新密码
- node.js - 使用格式对日期字段进行排序不起作用
- c# - LUIS 编程 SDK 功能在 Microsoft Build 2019 之后停止工作
- r - 在R中的highchart内循环
- sql - 如何使用 SQL 查询复制 svn 存储库中的文件?
- html - 为什么单击链接时内框会移动?
- python - 通过 XML 文件识别开始和结束 xml 标记(包括标记)后打印行
- sql - 插入新记录时全文索引未更新(Azure SQL Server 2017)
- tomcat - 在Tomcat中获取WebUtils.retrieveGrailsWebRequest()
- magento2 - 如何在地址编辑 Magento 2 上显示/保存自定义客户地址属性的值