DRYな備忘録

Don't Repeat Yourself.

【GKE】gcloud docker pushでdenied: Unable to access the repository; please check that you have permission to access it.と叱られる

こんなかんじ

% gcloud docker push gcr.io/otiai10-playground/test-1:v3
The push refers to a repository [gcr.io/otiai10-playground/test-1]
04f235615939: Preparing
a9e71a9668f2: Preparing
34a3b82a2ff3: Preparing
6893006a6a20: Preparing
9e5afa8bc165: Preparing
9d6702ca6aef: Waiting
5d8bfdaba994: Waiting
5f70bf18a086: Waiting
39d31a30c667: Waiting
5da3c7a63a96: Waiting
0b2fe2c6ef6b: Waiting
591569fa6c34: Waiting
998608e2fcd4: Waiting
c12ecfd4861d: Waiting
denied: Unable to access the repository; please check that you have permission to access it.

原因

gloudでのログインアカウントが違った。これと全く同じ問題

otiai10.hatenablog.com

DRYな備忘録として