GCP容器推送不起作用 – “拒绝:请在…在云端控制台中启用Google容器registryAPI …”
我无法上传我的docker图像到GCP容器registry。 我按照这里的指示 。
正如你在下面的截图中看到的,我已经:
- login到我的谷歌云壳,并通过dockerfilebuild立一个docker图像
- 正确标记我的图片(我认为)
- 试图推动使用正确的命令(我认为)
但是,我得到这个错误:拒绝:
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.
当我遵循这个链接时,就把我带到错误的项目:
当我select我自己的项目时,我可以看到“Google容器registryAPI”确实启用了:
我如何上传我的docker图片?
我似乎你错了你的项目ID。 您的项目名称是BensTestsProject但ID是bentestproject-184220。