构建容器映像时出现 GCP 错误
GCP error while building a container image
我必须测试一项功能,我需要从 Google 云 运行 ping google.com。为此,我创建了一个简单的 python 脚本来 ping google.com。
我将 Dockerfile 和 .dockerignore 添加到 Google Documentation 中提到的目录中。当我尝试构建容器镜像时,出现以下错误:
gcloud builds submit --tag gcr.io/project_id/ping-google
ERROR: (gcloud.builds.submit) The User is forbiden from accessing the bucket [project_id_cloudbuild]. Please check your organization's policy.
我是存储管理员和 Cloudbuild 编辑,我可能缺少哪些访问权限?
设置了一些组织政策,因此我无法使用 gcloud 执行此操作。但是我能够使用 here
中提到的步骤从云 shell 编辑器创建容器
本教程下载helo world代码。我编辑它以添加我的 ping 代码 google,我的工作完成了
我必须测试一项功能,我需要从 Google 云 运行 ping google.com。为此,我创建了一个简单的 python 脚本来 ping google.com。 我将 Dockerfile 和 .dockerignore 添加到 Google Documentation 中提到的目录中。当我尝试构建容器镜像时,出现以下错误:
gcloud builds submit --tag gcr.io/project_id/ping-google
ERROR: (gcloud.builds.submit) The User is forbiden from accessing the bucket [project_id_cloudbuild]. Please check your organization's policy.
我是存储管理员和 Cloudbuild 编辑,我可能缺少哪些访问权限?
设置了一些组织政策,因此我无法使用 gcloud 执行此操作。但是我能够使用 here
中提到的步骤从云 shell 编辑器创建容器本教程下载helo world代码。我编辑它以添加我的 ping 代码 google,我的工作完成了