MirrorNest
← Todos os guias

Harbor

Harbor is a CNCF graduated, enterprise-grade container image registry that adds role-based access control, vulnerability scanning, image signing, and replication on top of the OCI distribution spec.

Destino: Any Docker host (Linux)DevOpsContainersSite oficial ↗Documentação oficial ↗
Este guia foi elaborado a partir da documentação oficial do Harbor, ligada acima — verifique sempre lá os nomes exatos dos pacotes/versões antes de executar estes comandos num servidor de produção, uma vez que as versões da distribuição e do projeto mudam com o tempo.
  1. 1Verify prerequisites

    A Linux host with Docker Engine and Docker Compose installed, meeting Harbor's minimum hardware requirements (2 CPU / 4GB RAM minimum).

  2. 2Download the offline installer

    wget https://github.com/goharbor/harbor/releases/download/v2.15.0/harbor-offline-installer-v2.15.0.tgz
    tar xzvf harbor-offline-installer-v2.15.0.tgz
    cd harbor

    Replace v2.15.0 with the current release from Harbor's GitHub releases page.

  3. 3Configure harbor.yml

    Copy the template and set hostname to your server's IP or FQDN (not localhost), and set harbor_admin_password.

    cp harbor.yml.tmpl harbor.yml

    Default admin login is admin / Harbor12345 unless you override harbor_admin_password — always use HTTPS in production by configuring the certificate paths.

  4. 4Run the installer

    sudo ./install.sh
  5. 5First login

    Harbor's UI is served over the configured hostname/port (443 by default with HTTPS configured).