如何从无人机的GCR中提取私人图像?

时间:2018-07-05 10:17:40

标签: google-cloud-platform continuous-integration drone google-container-registry drone.io

我一直在寻找如何提取私人图像,但发现了this

我正在尝试使用cli无人机,但是当我使用此命令时

drone registry add \
  --repository octocat/hello-world \
  --hostname gcr.io \
  --username _json_key \
  --password @/absolute/path/to/keyfile.json

它返回一个错误: Client error: 404

有帮助吗?

1 个答案:

答案 0 :(得分:2)

添加自定义注册表时,在运行drone registry add时,存储库必须存在。

您可以运行drone repo ls(显示所有存储库)或drone repo info octocat/hello-world来确认您的存储库存在。