Docker Hub vs ECR vs GHCR vs Harbor: how do you choose?
IntermediateProductionRegistries, Tagging & Supply Chain
Answer
- Docker Hub: public distribution; rate limits.
- ECR: best on AWS (IAM, VPC endpoints, no egress cost inside region).
- GHCR: tight GitHub Actions integration, good for open source.
- Harbor: self-hosted, multi-cloud, policy/replication/proxy cache, on-prem and air-gapped.
- Also GAR (GCP), ACR (Azure), Quay (Red Hat).
Choose by where workloads run, compliance and egress cost.
More on Registries, Tagging & Supply Chain
What is a good image tagging strategy for production?BeginnerWhy is deploying by digest better than by tag?IntermediateHow do you enable immutable tags and lifecycle rules in ECR?IntermediateHow does ECR handle scanning and replication?IntermediateHow do you give an EKS node or CI job access to ECR with least privilege?IntermediateHow do you set up a pull-through cache for Docker Hub?Intermediate