问题
When you run gcloud auth login or gcloud auth list, where is it storing the credentials?
https://developers.google.com/identity/protocols/application-default-credentials
回答1:
I found them. They are in ~/.config/gcloud/credentials. I was able to pass the default credentials to the docker image I'm working on by mounting them docker run --rm -it -v ~/.config/gcloud:/root/.config/gcloud alpine:3.4 sh.
回答2:
Windows:
C:\Users\%username%\AppData\Roaming\gcloud\credentials
C:\Users\%username%\AppData\Roaming\gcloud\legacy_credentials
来源:https://stackoverflow.com/questions/40032678/where-are-google-application-default-credentials-stored