Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Di Harbor, project berfungsi sebagai unit logis untuk mengatur dan mengelola
kumpulan image container. Layanan ini menyediakan cara untuk mengelompokkan artefak terkait dan menerapkan kebijakan, kontrol akses, dan aturan replikasi tertentu ke seluruh koleksi. Gambar tidak dapat di-push atau ditarik ke Harbor sebelum project dibuat.
Sebelum memulai
Untuk membuat project Harbor, Anda harus memiliki peran identitas dan akses yang diperlukan:
Pembuat Project Harbor: memiliki akses untuk mengelola HarborInstanceProject
resource dalam projectnya. Minta Admin IAM Organisasi Anda untuk memberi Anda peran
Harbor Project Creator (harbor-project-creator).
Sebelum membuat project Harbor, Anda harus login ke UI Harbor terlebih dahulu agar Harbor dapat mengenali identitas Anda. Jika langkah ini terlewat, pembuatan project Harbor mungkin terhenti dengan positif palsu di konsol GDC.
Membuat project Harbor
Buat project Harbor menggunakan konsol GDC atau gdcloud CLI.
Konsol
Di konsol GDC, ikuti langkah-langkah berikut:
Klik link Harbor Container Registry di bagian CI/CD di
menu navigasi.
Klik Create a Harbor project.
Masukkan nama project.
Opsional: Pemindaian kerentanan diaktifkan secara default. Untuk menonaktifkan pemindaian kerentanan otomatis untuk project Harbor, klik tombol Aktifkan pemindaian kerentanan untuk project. Untuk mengetahui informasi selengkapnya, lihat Memindai kerentanan.
Klik Buat.
Pesan konfirmasi akan muncul yang menyatakan bahwa project Anda berhasil dibuat.
Setelah project Harbor Anda dibuat, login ke UI Harbor untuk mengonfirmasi bahwa Anda dapat melihat project Harbor.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[[["\u003cp\u003eHarbor projects are essential for organizing and managing container images, as they group related artifacts and allow for the application of specific policies and access controls.\u003c/p\u003e\n"],["\u003cp\u003eTo create Harbor projects, users must have the Harbor Project Creator role (\u003ccode\u003eharbor-project-creator\u003c/code\u003e) and sign in to the Harbor UI beforehand to ensure proper identity recognition.\u003c/p\u003e\n"],["\u003cp\u003eHarbor projects can be created using either the GDC console, where users can navigate to the Harbor Container Registry and create projects, or the \u003ccode\u003egdcloud\u003c/code\u003e CLI with the \u003ccode\u003egdcloud harbor harbor-projects create\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eVulnerability scanning is enabled by default when creating a project, however, it can be disabled by clicking the appropriate toggle in the GDC console, or left on if you desire to scan for vulnerabilities.\u003c/p\u003e\n"],["\u003cp\u003eAfter a Harbor Project is created it is recommended to sign in to the Harbor UI to confirm that the project can be viewed.\u003c/p\u003e\n"]]],[],null,["# Create Harbor projects\n\nIn Harbor, a project serves as a logical unit for organizing and managing a\ncollection of container images. It provides a way to group related artifacts\ntogether and apply specific policies, access controls, and replication rules to\nthe entire collection. Images cannot be pushed or pulled to Harbor before a\nproject is created.\n\nBefore you begin\n----------------\n\nTo create Harbor projects, you must have the necessary identity and access\nroles:\n\n- Harbor Project Creator: has access to manage the `HarborInstanceProject` resource in their project. Ask your Organization IAM Admin to grant you the Harbor Project Creator (`harbor-project-creator`) role.\n- Before creating Harbor projects, you must sign in to the Harbor UI first for Harbor to recognize your identity. If this step is missed, the Harbor project creation might be stuck with a false positive in the GDC console.\n\nCreate a Harbor project\n-----------------------\n\nCreate a Harbor project using the GDC console or the gdcloud CLI. \n\n### Console\n\nIn the GDC console, follow these steps:\n\n1. Click the **Harbor Container Registry** link in the **CI/CD** section in the navigation menu.\n2. Click **Create a Harbor project**.\n3. Enter the name of the project.\n4. Optional: Vulnerability scanning is enabled by default. To disable automatic vulnerability scanning for Harbor projects, click the **Enable vulnerability scanning for the project** toggle. For more information, see [Scan for vulnerabilities](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/scan-vulnerabilities).\n5. Click **Create**.\n6. A confirmation message appears stating your project is created successfully.\n7. After your Harbor project is created, sign in to the Harbor UI to confirm that you can view the Harbor project.\n\n### CLI\n\nCreate the Harbor project: \n\n gdcloud harbor harbor-projects create \u003cvar translate=\"no\"\u003eHARBOR_PROJECT\u003c/var\u003e \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT\u003c/var\u003e \\\n --instance=\u003cvar translate=\"no\"\u003eINSTANCE\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eHARBOR_PROJECT\u003c/var\u003e: the name of the Harbor project to create.\n- \u003cvar translate=\"no\"\u003ePROJECT\u003c/var\u003e: the name of the GDC project.\n- \u003cvar translate=\"no\"\u003eINSTANCE\u003c/var\u003e: the name of the instance."]]