如何解决“ - 必须为自定义运行时设置--custom_entrypoint标志”? [英] How to fix "`The --custom_entrypoint flag must be set for custom runtimes`"?

查看:158
本文介绍了如何解决“ - 必须为自定义运行时设置--custom_entrypoint标志”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行 gcloud预览应用运行app.yaml 时出现appengine错误:
--custom_entrypoint标志必须为为自定义运行时设置

I get this error on appengine when I run gcloud preview app run app.yaml: The --custom_entrypoint flag must be set for custom runtimes

我的 app.yaml 看起来像:

version: 0-1-1
runtime: custom
vm: true
api_version: 1
manual_scaling:
  instances: 1

handlers:
  - url: .*
    script: dynamic

我的dockerfile只是:
FROM google / nodejs-runtime

My dockerfile is just: FROM google/nodejs-runtime

我重新安装了 gcloud 以获取最新版本,在托管虚拟机的yaml配置中做了一些更改?这使得我无法测试我的应用程序。

I reinstalled gcloud to get the latest version, did something change in the yaml config for managed VMs? This makes it impossible for me to test my app.

推荐答案

Google Cloud SDK版本似乎存在错误或设置问题0.9.67导致这个错误。作为临时解决方法,您可以使用以下命令恢复到以前的SDK版本:

There appears to be a bug or setup issue with Google Cloud SDK version 0.9.67 causing this error. As a temporary workaround, you can revert to previous SDK version, which is working, with the following commands:

gcloud config set component_manager/fixed_sdk_version 0.9.66
gcloud components update

要返回到当前版本的SDK ,运行:

To return to the current version of the SDK, run:

gcloud config unset component_manager/fixed_sdk_version
gcloud components update

这个问题出现在几个版本前,并在这里解决:
在Google云上运行node.js,但运行docker时出错

This issue appeared a few versions ago and was addressed here: Running node.js on google cloud, but error running with docker

这篇关于如何解决“ - 必须为自定义运行时设置--custom_entrypoint标志”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆