Back to articles
Harbor Has a Free API — Your Private Container Registry
How-ToDevOps

Harbor Has a Free API — Your Private Container Registry

via Dev.to DevOpsAlex Spinov

Harbor is an open-source container registry with security scanning, RBAC, and replication. It is the CNCF graduated alternative to Docker Hub. What Is Harbor? Harbor stores, signs, and scans container images. It integrates with Kubernetes, provides vulnerability scanning, and supports image replication across registries. Features: Container image storage Vulnerability scanning (Trivy) Role-based access control Image signing (Cosign/Notary) Replication between registries Helm chart repository CNCF graduated Quick Start # Download installer wget https://github.com/goharbor/harbor/releases/download/v2.11.0/harbor-online-installer-v2.11.0.tgz tar xvf harbor-online-installer-v2.11.0.tgz cd harbor ./install.sh REST API # List projects curl -s https://harbor.example.com/api/v2.0/projects \ -u admin:Harbor12345 # List repositories curl -s https://harbor.example.com/api/v2.0/projects/myproject/repositories \ -u admin:Harbor12345 # Get vulnerabilities curl -s https://harbor.example.com/api/v2.0/

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
7 views

Related Articles