Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Falha no push do docker

$ docker push gcr.io/denis-393921/forum-alura

Retorno:

Using default tag: latest
The push refers to repository [gcr.io/denis-393921/forum-alura]
7442f1b2a60b: Preparing
3ab01e8988bf: Preparing
c98dc9a94132: Preparing
3ffdb7e28503: Preparing
33dd93485756: Preparing
607d71c12b77: Waiting
052174538f53: Waiting
8abfe7e7c816: Waiting
c8b886062a47: Waiting
16fc2e3ca032: Waiting
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

O arquivo de autorização foi criado corretamente:

{
  "credsStore": "desktop",
  "credHelpers": {
    "gcr.io": "gcloud",
    "us.gcr.io": "gcloud",
    "eu.gcr.io": "gcloud",
    "asia.gcr.io": "gcloud",
    "staging-k8s.gcr.io": "gcloud",
    "marketplace.gcr.io": "gcloud"
  }
}
1 resposta
solução!

Tem que dar umgcloud auth login antes