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/projects/myproject/repositories/myapp/artifacts/latest/additions/vulnerabilities \
-u admin:Harbor12345
# Create project
curl -X POST https://harbor.example.com/api/v2.0/projects \
-u admin:Harbor12345 \
-d '{"project_name":"newproject","public":false}'
Use Cases
- Private registry — store internal container images
- Security scanning — scan for CVEs automatically
- Compliance — audit trails and RBAC
- Multi-site — replicate images across data centers
- Air-gapped — offline Kubernetes deployments
Need web data at scale? Check out my scraping tools on Apify or email spinov001@gmail.com for custom solutions.
Top comments (0)