我正在尝试从 Google 上的 Pub/Sub 教程(链接此处)构建一个 docker 映像。我正在运行此命令:gcloud builds submit --tag gcr.io/project_id/pubsub但由于某种原因我收到标题中提到的错误:ERROR: (gcloud.builds.submit) INVALID_ARGUMENT: could not resolve source: googleapi: Error 403: <SERVICE ACCOUNT> does not have storage.objects.get access to the Google Cloud Storage object., forbidden。我向服务帐户授予了该roles/storage.admin角色,但这不起作用。我什至将服务帐户设置为所有者,但仍然遇到相同的错误。
google-cloud-storage service-accounts google-cloud-platform google-cloud-shell google-cloud-build
我正在使用 Google Cloud SDK shell。当输入以下命令时:
gcloud container clusters get-credentials test-cluster
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
ERROR: gcloud crashed (WindowsError): [Error 3] The system cannot find the path specified: u'W:\\'
Run Code Online (Sandbox Code Playgroud)
我不确定为什么会发生这种情况。该命令应该配置kubectl为使用我已经创建的名为“test-cluster”的集群,但它正在尝试查找驱动器 W:,我知道该驱动器不存在。
gcloud ×1