Cloud Build 中的 imageurl 是什么?
What is the imageurl in Cloud Build?
这里https://cloud.google.com/run/docs/building/containers说
Run the command: gcloud builds submit --tag IMAGE_URL
Replace IMAGE_URL with a reference to the container image, for
example, gcr.io/myproject/my-image:latest.
什么是 IMAGE_URL,它是我编造的东西还是我需要在上一步中创建的东西?
当您运行此命令时,您要求Cloud Build根据您当前环境的Dockerfile构建一个容器。
这个容器需要存放在某个地方。最简单的解决方案是使用 GCR (Google Container Registry), a managed service where you can store your container image. You have nothing to create or build. You only have several base URLs according with your location,然后,您需要添加您的项目 ID 和您的图像名称以具有此模式
<optional region.>gcr.io/<ProjectID>/<ImageName>
如果要使用artifact registry, the new container registry of Google Cloud, with more feature and capacity, you have to create it before being able to use it。命名较长,但允许您在同一个项目中拥有多个存储库,并为每个存储库设置权限。
所以,回答你的问题
is it something I needed to have created in a previous step?
这取决于你想用什么!
这里https://cloud.google.com/run/docs/building/containers说
Run the command:
gcloud builds submit --tag IMAGE_URL
Replace IMAGE_URL with a reference to the container image, for example, gcr.io/myproject/my-image:latest.
什么是 IMAGE_URL,它是我编造的东西还是我需要在上一步中创建的东西?
当您运行此命令时,您要求Cloud Build根据您当前环境的Dockerfile构建一个容器。
这个容器需要存放在某个地方。最简单的解决方案是使用 GCR (Google Container Registry), a managed service where you can store your container image. You have nothing to create or build. You only have several base URLs according with your location,然后,您需要添加您的项目 ID 和您的图像名称以具有此模式
<optional region.>gcr.io/<ProjectID>/<ImageName>
如果要使用artifact registry, the new container registry of Google Cloud, with more feature and capacity, you have to create it before being able to use it。命名较长,但允许您在同一个项目中拥有多个存储库,并为每个存储库设置权限。
所以,回答你的问题
is it something I needed to have created in a previous step?
这取决于你想用什么!