`gcloud docker` 命令在每次调用时刷新访问令牌

`gcloud docker` 命令在每次调用时刷新访问令牌

苹果系统

Google Cloud SDK 183.0.0
beta 2017.09.15
bq 2.0.27
core 2017.12.08
gcloud
gsutil 4.28
kubectl

我尝试过撤销登录并再次登录,但每个命令都会gcloud docker刷新访问令牌,因此它会在实际执行命令之前挂起大约 30 秒。

$ gcloud --verbosity=debug docker -- --help                                                                                                                                                      
DEBUG: Running [gcloud.docker] with arguments: [--verbosity: "debug"]
INFO: Refreshing access_token

$ gcloud --verbosity=debug docker -- --help                                                                                                                                                          
DEBUG: Running [gcloud.docker] with arguments: [--verbosity: "debug"]
INFO: Refreshing access_token

知道是什么原因造成的吗?

登录调试日志

$ gcloud --verbosity=debug auth login                                                                        
DEBUG: Running [gcloud.auth.login] with arguments: [--verbosity: "debug"]
Your browser has been opened to visit:

    https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&prompt=select_account&response_type=code&client_id=32555940559.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Faccounts.reauth&access_type=offline


INFO: Successfully retrieved access token
WARNING: `gcloud auth login` no longer writes application default credentials.
If you need to use ADC, see:
  gcloud auth application-default --help

You are now logged in as [xxx].
Your current project is [xxx].  You can change this setting by running:
  $ gcloud config set project PROJECT_ID
INFO: Display format "none".

相关内容