Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们希望在 Google Cloud Platform 上有一个单独的测试和生产项目,但我们希望在两种环境中重用相同的 docker 镜像。在测试项目上运行的 Kubernetes 集群是否可以使用推送到 prod 项目的图像?如果是这样,怎么做?
看着你的问题,我相信你的意思是项目。
从注册表中提取图像的命令是:
$ gcloud docker pull gcr.io/your-project-id/example-image
这意味着只要您的帐户是图像所属项目的成员,您就可以将图像从该项目拉到您帐户所属的任何其他项目中。
是的,这是可能的,因为容器映像是基于每个容器的。