简体   繁体   English

Google Cloud身份验证JSON密钥文件

[英]Google Cloud Authentification json keyfile

The following can be found in the manual: enter image description here Unfortunately, this leads under Windows after the second command to the following error message: docker login" requires at most 1 argument. See 'docker login --help'. Usage: docker login [OPTIONS] [SERVER] 可以在手册中找到以下内容: 在此处输入图像描述不幸的是,这在Windows下的第二条命令后导致以下错误消息:“ docker login”最多需要1个参数。请参阅“ docker login --help”。用法:docker登录[选项] [服务器]

can someone help me or does anyone have a workaround? 有人可以帮助我,或者有人可以解决吗?

Make sure to replace the HTML entity &lt; 确保替换HTML实体&lt; with < and make sure to give the right path of the JSON key-file 使用<并确保提供JSON密钥文件的正确路径

Reference: GCR docs . 参考: GCR文档

set /p PASS=<keyfile.json
docker login -u _json_key -p "%PASS%" https://gcr.io

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM