Google Cloud身份验证-获取我的应用的密钥ID [英] Google Cloud Authentication - getting the Key ID of my app

查看:75
本文介绍了Google Cloud身份验证-获取我的应用的密钥ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将docker映像推送到Container Registry,以便我的应用程序可以利用它.

I am trying to push a docker image to the Container Registry, so that my app can utilize it.

为此,我必须设置身份验证.

In order to do that, i have to set up Authentication.

这需要使用以下命令:

gcloud auth activate-service-account ACCOUNT --key-file=KEY-FILE

在这里提到: https://cloud.google.com/container-registry/docs/advanced-authentication#gcloud-helper

但是我首先必须设置服务帐户密钥,如此处所述: https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys

But i first have to set up service account keys, as mentioned here: https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys

我做了链接所说的一切,然后得到了json文件.

I did everything that link said, and i got the json file.

但是KEY-FILE参数到底是什么?

But what exactly is the KEY-FILE parameter?

没有提及KEY-FILE参数是什么.

There is no mention on what the KEY-FILE parameter is.

推荐答案

@ user1584421 KEY-FILE是您生成的json文件的物理位置.

@user1584421 KEY-FILE is the physical location of the json file you have generated.

让我们说-C:\ my-key.json

Lets say - C:\my-key.json

这篇关于Google Cloud身份验证-获取我的应用的密钥ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆