我正在尝试将 docker 映像推送到 GCP,但我仍然收到此错误:
unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication
Run Code Online (Sandbox Code Playgroud)
我一步一步地遵循这个https://cloud.google.com/container-registry/docs/quickstart一切正常,直到 docker push
很明显 GCP 项目
我已经试过了:
gcloud auth configure-dockergcloud init我做错了什么?
感谢您的任何建议
permissions docker google-cloud-platform google-container-registry