Artifact Registry 位置
建立存放區時,您必須指定位置。所選位置會決定存放區儲存位置。這個位置稱為「地區」,代表特定的地理位置,例如東京或倫敦。
Artifact Registry 會根據服務專屬條款,將構件儲存在所選位置。
適合的位置可讓資料消費者在延遲時間、可用性和頻寬費用之間取得平衡。
- 使用單一區域可讓位於相同區域的系統上傳和下載內容時,延遲時間和網路頻寬達到最佳化。
如要查看支援的存放區位置清單,請執行下列指令:
gcloud artifacts locations list
位置限制
貴機構可能會對儲存資料的位置有特定規定。如果您的機構政策包含資源位置限制,Artifact Registry 會在您建立存放區時強制執行這些限制。
機構政策規範不會強制追溯執行現有存放區。如要針對現有儲存構件強制執行新的位置限制,請在套用機構政策後建立新的存放區,然後將構件從舊存放區遷移至新存放區。您可以使用 gcrane 工具,在存放區之間複製映像檔。
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間: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"]],["上次更新時間:2025-08-18 (世界標準時間)。"],[[["\u003cp\u003eRepositories in Artifact Registry must be assigned a location, which can be either a specific region, like Tokyo, or a multi-region, such as Asia.\u003c/p\u003e\n"],["\u003cp\u003eChoosing 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.\u003c/p\u003e\n"],["\u003cp\u003eStoring 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.\u003c/p\u003e\n"],["\u003cp\u003eOrganization 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.\u003c/p\u003e\n"],["\u003cp\u003eMulti-regions include the geographic areas of \u003ccode\u003easia\u003c/code\u003e, \u003ccode\u003eeurope\u003c/code\u003e, and \u003ccode\u003eus\u003c/code\u003e, 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.\u003c/p\u003e\n"]]],[],null,[]]