Artifact Registry 位置
创建代码库时,您必须指定其位置。所选位置决定了创建代码库存储空间所在的位置。此位置称为区域,表示特定的地理位置,例如东京或伦敦。
Artifact Registry 根据服务专用条款将工件存储在选定位置。
良好的位置可以让数据使用者在延迟、可用性和带宽费用之间取得平衡。
- 使用单区域位置有助于优化位于同一区域的系统的上传和下载延迟时间和网络带宽。
如需查看受支持的代码库位置列表,请运行以下命令:
gcloud artifacts locations list
位置限制条件
贵组织可能对存储数据的位置有特定要求。如果您的组织政策包含资源位置限制条件,Artifact Registry 会在您创建代码库时强制执行这些限制条件。
系统不会以追溯方式强制执行组织政策合规性。如需对现有存储工件强制执行新的位置限制,请在应用组织政策后创建新的代码库,然后将工件从旧代码库迁移到新代码库。您可以使用 gcrane 工具在代码库之间复制映像。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-18。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[[["Repositories in Artifact Registry must be assigned a location, which can be either a specific region, like Tokyo, or a multi-region, such as Asia."],["Choosing a region helps optimize latency and network bandwidth for systems located in that same region, while multi-regions are better for interactions with systems outside the Google network or requiring high availability."],["Storing artifacts in the same region as Compute Engine VM instances can enhance performance, and while a specific zone cannot be selected for a repository, VMs within the same region will experience similar performance."],["Organization policies may enforce location constraints on repositories, and if existing repositories need to adhere to these new constraints, new repositories must be created and artifacts migrated to them."],["Multi-regions include the geographic areas of `asia`, `europe`, and `us`, and when using Image streaming with Google Kubernetes Engine, the repository must be in the same region as the GKE nodes, or a multi-region corresponding to the nodes' region."]]],[]]