预期行为:我可以运行使用 Apple M1 芯片构建的容器。
\n观察到的行为:
\n假设您有 Google Cloud Run 帐户并且可以将 Docker 镜像推送到 Google Container Registry。我在这个例子中使用https://github.com/seenickcode/trivial-go-api。
\ncd trivial-go-apidocker build -t gcr.io/<YOUR GCR PROJECT ID>/example .docker push -t gcr.io/<YOUR GCR PROJECT ID>/exampleconsole.cloud.google.comGoogle Cloud Run > 创建新服务 > 选择推送的 Docker 映像(包含所有默认选项)> 运行Cloud Run error: Container failed to start. \nFailed to start and then listen on the port defined by the PORT environment …Run Code Online (Sandbox Code Playgroud)