DEV Community

Jorge Soares
Jorge Soares

Posted on

GCloud + Docker problema de unauthorized

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

Eu estava com problema para fazer deploy para o Google Container.
Por algum motivo meu Docker no Windows não estava conseguindo se conectar ao GCloud para fazer o push das imagens.

Depois de tentar de várias formas, a solução prática e rápida que encontrei foi usar esse comando.

gcloud docker -- pull gcr.io/image:tag
Enter fullscreen mode Exit fullscreen mode

Documentação: https://cloud.google.com/sdk/gcloud/reference/docker

Ao rodar esse comando, ele usa as credenciais do Gcloud para se autenticar com o docker e fazer tanto o Push quanto o Pull das imagens.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)