ERROR: (gcloud.run.deploy) Error parsing [service]. The [service] resource is not properly specified. Failed to find attribute [service]
ERROR: (gcloud.run.deploy) Error parsing [service]. The [service] resource is not properly specified. Failed to find attribute [service]
我正在尝试使用以下命令将我的 nodejs 应用程序部署到云 运行
gcloud run deploy --image gcr.io/[project-id]/helloworld --platform managed
在 运行 执行此命令之前,我构建了两个云构建映像并尝试使用上述命令部署最新构建。但是得到以下错误
ERROR: (gcloud.run.deploy) Error parsing [service].
The [service] resource is not properly specified.
Failed to find attribute [service]. The attribute can be set in the following ways:
- provide the argument [SERVICE] on the command line
- specify the service name from an interactive prompt
我不知道是哪个导致了错误。有人可以帮我吗?谢谢
$ gcloud run deploy --image gcr.io/cloudrun/hello --platform managed
应该会提示您选择平台、区域和服务名称。请尝试使用此命令。
在您的命令中,确保将 [project-id]
替换为您的 GCP 项目 ID。
尝试将 Service ID 指定为参数,将 my-service
替换为所需的名称:
gcloud run deploy my-service --image gcr.io/[project-id]/helloworld --platform managed
此外,请确保您使用的是最新的 Cloud SDK gcloud components update
。
我正在尝试使用以下命令将我的 nodejs 应用程序部署到云 运行
gcloud run deploy --image gcr.io/[project-id]/helloworld --platform managed
在 运行 执行此命令之前,我构建了两个云构建映像并尝试使用上述命令部署最新构建。但是得到以下错误
ERROR: (gcloud.run.deploy) Error parsing [service].
The [service] resource is not properly specified.
Failed to find attribute [service]. The attribute can be set in the following ways:
- provide the argument [SERVICE] on the command line
- specify the service name from an interactive prompt
我不知道是哪个导致了错误。有人可以帮我吗?谢谢
$ gcloud run deploy --image gcr.io/cloudrun/hello --platform managed
应该会提示您选择平台、区域和服务名称。请尝试使用此命令。
在您的命令中,确保将 [project-id]
替换为您的 GCP 项目 ID。
尝试将 Service ID 指定为参数,将 my-service
替换为所需的名称:
gcloud run deploy my-service --image gcr.io/[project-id]/helloworld --platform managed
此外,请确保您使用的是最新的 Cloud SDK gcloud components update
。