我将docker镜像上传到GCP Container注册表时遇到问题。我跟随instructions here。
正如您在下面的屏幕截图中看到的,我:
但是,我收到了这个错误:拒绝:
Please enable Google Container Registry API in Cloud Console at https://console.cloud.google.com/apis/api/containerregistry.googleapis.com/overview?project=bentestproject-184220 before performing this operation.
当我关注该链接时,它会将我带到错误的项目:
当我选择自己的项目时,我可以看到确实启用了“Google Container Registry API”:
如何上传我的泊坞窗图片?
我好像你错了你的项目ID。您的项目名称是BensTestsProject,但ID是bentestproject-184220。
我有同样的问题并解决了它。在我的情况下,图像标签中的项目名称是错误的。你必须重新检查你的图像标签中的“bentestproject-184220”是否正确你的projectID。