【发布时间】:2015-10-31 17:21:54
【问题描述】:
我想在 Docker 容器中使用 gsutil。我创建了一个 O2Auth 服务帐户 JSON 文件。
如何设置 gsutil auth 以使用 JSON 配置文件并在不提示的情况下执行命令?
目前我得到这样的东西:
$ gsutil config -e
It looks like you are trying to run "/.../google-cloud-sdk/bin/bootstrapping/gsutil.py config".
The "config" command is no longer needed with the Cloud SDK.
To authenticate, run: gcloud auth login
Really run this command? (y/N) y
This command will create a boto config file at /.../.boto
containing your credentials, based on your responses to the following questions.
What is the full path to your private key file?
对于环境提示,我必须使用什么命令/参数/设置?
【问题讨论】: