是否可以在Google Cloud Web Client中从不同项目中的图像创建实例? [英] Is it possible in google cloud web client to create an instance from image in different project?

查看:53
本文介绍了是否可以在Google Cloud Web Client中从不同项目中的图像创建实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gcloud中有几个项目,例如阶段项目"和生产项目".我创建了一个映像,在"staging-project"中将其称为"stagign-image-1",用于新实例.我也想在生产项目"中使用此图像.

I have several projects in gcloud, call them e.g. "staging-project" and "production-project". I have created an image, call it "stagign-image-1" in "staging-project", which I use for new instances. And I would like to use this image in "production-project" as well.

据我所知,可以使用gcloud命令行工具来执行此操作-您可以使用您的私人Google帐户登录该帐户,该帐户可以访问两个项目并执行以下操作:

As far as I know, it is possible to do it using gcloud command line tool - you log there using your private google account, which has access to both projects and do:

gcloud config set project "production-project

gcloud compute instances create production-instance-from-staging-image --image staging-image-1 --image-project staging-project

这对我来说很好,但是我很少有同事不太喜欢命令行.那么有没有办法在gcloud网络控制台中实现这一目标呢?当我在生产项目中列出图像时,我根本看不到staging-image-1,也找不到如何选择它的方法. :(

This works fine for me, but I have few colleagues who don't like command line so much. So is there a way how to achieve this in the gcloud web console? When I list images in production-project, I simply do not see the staging-image-1 and I found no way how to select it. :(

推荐答案

--image-project.

已提出一个问题来解决此问题.谢谢.

An issue has been filed to fix that. Thanks.

这篇关于是否可以在Google Cloud Web Client中从不同项目中的图像创建实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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