Amazon ECR vs Docker Hub vs Harbor: which registry fits your situation
If your platform team already runs on AWS and needs images to sit beside its clusters and IAM controls, Amazon ECR is the usual first choice. Docker Hub suits teams whose pipelines mostly pull public images and whose data can live with a hosted provider. Amazon ECR and Docker Hub are both hosted services: the provider operates the registry, and where your data sits is set by its region options and terms. Harbor is the one a team runs itself, under the Apache-2.0 license, in its own cloud accounts or data centers. The decision turns on three questions: where image data must physically sit, how many pulls your pipelines make against upstream limits, and how much operating capacity your team has for a registry it must patch and back up.
A CI pipeline pulling public images at volume should size its pulls before choosing a registry. Docker's documentation sets Docker Hub limits at 100 pulls per 6 hours for unauthenticated users per IPv4 address or IPv6 /64 subnet and 200 for Docker Personal accounts, while Pro, Team and Business accounts get unlimited pulls subject to fair use. Docker's pricing page states 100 pulls per hour for Personal, so confirm the enforced limit with Docker. ECR pull through cache rules can sync from Docker Hub with credentials held in AWS Secrets Manager, and ECR checks each cached image upstream at most once every 24 hours, serving the last cached copy if upstream is unreachable. Test the first pull from a private subnet, since ECR may need an internet route even through an interface VPC endpoint.
A regulated team that must hold images inside its own network should evaluate Harbor first. Harbor is a CNCF graduated project (Graduated since June 15, 2020) that extends the open-source Distribution registry with projects, role-based access control, LDAP/AD and OIDC single sign-on, scanning, garbage collection, audit logs and a REST API. Its Harbor replication endpoints can pull from or push to Docker Hub, AWS ECR and other registries, so you can keep a controlled copy in your network. The license carries no fee, but hosting, storage and staff time recur. Recent releases show the upkeep: v2.15.2 moves the bundled database from PostgreSQL 15 to PostgreSQL 18 on container startup and recommends a backup first, and v2.15.3 blocks webhooks to internal network addresses by default. Rehearse upgrades in staging and check those settings before production.
Which container registry fits each team's situation
This table maps five common team situations to the registry that usually fits best, with the condition that must hold and the item to confirm before you commit. Read each row as a starting point, since pricing, pull limits and Harbor upgrade steps change between releases. The main takeaway is that the deciding factors are where your workloads run, who pulls images and how much control your policy requires.
| Scenario | Best fit | Holds when | Confirm first |
|---|---|---|---|
| AWS-native workloads | Amazon ECR | Workloads and pipelines already run in one AWS account and Region, with IAM as the access model. | Storage and cross-Region transfer rates for your Region, and whether Lambda needs images, since it cannot use pull through cache. |
| CI pipelines pulling public base images | ECR pull through cache if CI runs in AWS, otherwise a paid Docker Hub tier | Runners share a few egress IPs and pull base images often, so unauthenticated Docker Hub limits would be hit. | The enforced Docker Hub limit on your plan, since Docker's pricing and usage pages state different Personal figures. |
| Regulated teams keeping images in their own network | Harbor, self-hosted | Policy requires images, scan results and audit logs to stay in your network, and your team can run upgrades and backups. | Upgrade path: v2.15.2 migrates the bundled database on startup, so back up first, and v2.15.3 changes webhook defaults. |
| Mixed-cloud registry estates | Harbor as the hub, replicating to and from ECR, ACR and other clouds | Several clouds or regions need the same images, and you want one place for projects, roles and scanning. | Endpoint type and credentials for each cloud, plus the egress charges each provider bills for replication traffic. |
| Small teams with few images | Docker Hub Personal, moving to Team if private repositories grow | Few images and private repositories, and no SSO or SCIM need, which Docker lists only for Business. | Current plan prices and limits on Docker's pricing page, and whether a legacy plan applies to your account. |
How Docker Hub pull limits and AWS transfer charges change the decision
Pull limits and data transfer are the costs teams most often find after go-live, so check them before choosing a registry. Docker's pull usage documentation sets unauthenticated pulls at 100 per 6 hours per IPv4 address or IPv6 /64 subnet and Docker Personal accounts at 200 per 6 hours. Pro, Team and Business accounts get unlimited pulls subject to fair use. A separate abuse rate limit, in the order of thousands of requests per minute per IP address, returns HTTP 429. Docker's pricing page describes Personal as 100 pulls per hour with reasonable use when logged in, which conflicts with the 200 per 6 hours in the usage documentation. Get the enforced limit confirmed by Docker in writing before you size CI pipelines or build runners around it.
Amazon ECR shifts the cost to storage and transfer. The ECR pricing page example charges private repository storage at $0.10 per GB per month and cross-Region data transfer out at $0.09 per GB. Transfer between ECR and other services in the same Region is free, so runners and clusters in the same Region as the repository avoid that charge. Model the paths your images actually take, including any pull from another Region, and ask AWS which transfer paths apply to your topology. Pull through cache rules can sync from Docker Hub using credentials in AWS Secrets Manager, and ECR checks a cached image upstream at most once every 24 hours, which limits how often that sync reaches Docker Hub. Harbor avoids a vendor pull quota, but the storage and egress of your own infrastructure become your costs.
Docker's February 2025 blog post says Docker did not enforce the April 1, 2025 rate limit changes and will announce any future enforcement at least six months in advance. It also cancelled the previously announced pull consumption charges and delayed storage-based billing indefinitely, with six months of notice promised if storage charges return. Treat that as a published commitment to verify, not a fixed contract. Ask Docker for current terms in writing, and check your change control process against a six-month notice window. If Harbor replicates images from Docker Hub, the replication job becomes one controlled consumer of Docker's limits, and its per-task bandwidth limit can keep it from saturating your uplink.
Amazon ECR vs Docker Hub vs Harbor: capabilities side by side
This table compares how Amazon ECR, Docker Hub and Harbor handle hosting, licensing, identity, upstream pulls, replication, scanning, OCI artifacts, APIs and upgrades. Where a cell says to confirm, check that point with AWS or Docker before you shortlist, because the answer depends on your account, plan or version. The main takeaway: ECR and Docker Hub are managed services with usage or tier-based costs, while Harbor puts data location, identity setup and upgrades under your control at the cost of operating effort.
| Capability | Amazon ECR | Docker Hub | Harbor |
|---|---|---|---|
| Hosting and data location | AWS-managed registry in your AWS account. Confirm which Regions hold your image data with AWS. | Docker-hosted service. Confirm where image data is stored and how long it is kept with Docker. | Self-hosted in your cloud, data center or air-gapped network, so you choose where image data sits. |
| License and cost basis | AWS service billed by usage. Example pricing: $0.10 per GB per month for private storage (Amazon ECR pricing page). | Hosted plans: Personal at $0, Pro at $9 per user per month billed annually (Docker pricing page). | Apache-2.0 software (GitHub repository). Your costs are infrastructure and staff time. |
| Identity integration | Access through AWS IAM. Confirm how your SSO provider federates into AWS with AWS. | Single sign-on and SCIM provisioning are listed only for Docker Business (Docker pricing page). | Projects with role-based access control, LDAP/AD and OIDC single sign-on (Harbor README). |
| Pull-through and upstream sources | Pull through cache rules sync from Docker Hub, ECR Public, Quay, GHCR and others. Checks upstream at most once every 24 hours. | Pull limits of 100 per 6 hours unauthenticated and 200 for Personal accounts (Docker usage docs). Confirm the enforced limit with Docker. | Replication endpoints include Docker Hub, AWS ECR and Artifactory. Confirm proxy cache setup for your version. |
| Replication | Confirm cross-Region and cross-account copy options with AWS. | Confirm whether Docker offers mirroring or sync options for your plan. | Push or pull rules filtered by name, tag, label and type, run manually, on cron or on push events (Harbor docs). |
| Scanning and garbage collection | Confirm vulnerability scanning tiers and garbage collection behavior with AWS. | Confirm scanning and image cleanup features available on your plan with Docker. | Built-in vulnerability scanning and garbage collection (Harbor README). |
| OCI artifacts and Helm charts | Confirm which OCI artifact and Helm chart types ECR accepts with AWS. | Confirm Helm chart and OCI artifact hosting and limits with Docker. | Images and Helm charts stored as OCI artifacts; ChartMuseum removed from v2.8.0 onward. |
| REST API | AWS API and CLI. Confirm which operations your automation needs with AWS. | Docker Hub API reference is published. Confirm endpoints and rate limits for your tooling with Docker. | REST API with embedded Swagger UI (Harbor README). |
| Upgrade ownership | AWS operates the service. You own repository settings, IAM policies and pipeline changes. | Docker operates the service and gives at least six months notice before enforcing future pull limits (Docker blog). | You run upgrades. v2.15.2 moves the bundled database to PostgreSQL 18, so back up first. |
What is free, what is paid and what each license allows
Amazon ECR bills by usage, so the bill follows how much you store and how much data leaves a Region. Private repository storage is metered, and the free tier suits trials and small footprints, while steady production use is billed. The pricing page example charges $0.10 per GB per month for private storage, which is a reference point to check against your own image volume and Region.
- Free tier: New customers get 500 MB per month of private repository storage for one year. That covers a trial or a small test registry, and it ends when the year ends.
- Public storage: Public repositories include 50 GB per month of always-free storage, which applies to images you publish openly.
- Cross-Region transfer: Data transfer out to another Region is billed, with the pricing example at $0.09 per GB. Multi-Region replicas or pulls from a distant Region add this cost each time an image moves.
- Same-Region traffic: Data transfer between ECR and other services in the same Region is free, so pipelines and clusters placed in that Region avoid transfer charges for those pulls.
- Retention: Storage grows with the images and tags you keep, so lifecycle policies often shape the bill more than the number of users does.
Before you commit, confirm current rates for your Region and model storage and cross-Region transfer from your own image sizes, retention rules and pull patterns, starting with the AWS pricing page.
Docker Hub charges per user for its paid tiers, so cost follows headcount as well as storage and pulls. Every seat is billed at the tier rate, so the total rises with each person you add. Personal is free but limited to one private repository, and each paid tier adds private repositories, access tokens and identity features. Pull limits are a separate question, and the documented figures for free accounts do not fully agree, so confirm them before you plan around them.
- Personal: $0 with 1 private repository. Docker's usage documentation sets Personal pulls at 200 per 6 hours, while the pricing page describes 100 pulls per hour, so confirm the enforced limit with Docker.
- Pro: $9 per user per month billed annually, or $11 billed monthly. Pro, Team and Business accounts receive unlimited pulls subject to fair use.
- Team: $15 per user per month billed annually, or $16 billed monthly, with unlimited private repositories and 10 organization access tokens.
- Business: $24 per user per month, with single sign-on and SCIM provisioning listed for this tier and 100 organization access tokens.
- Legacy plans: The pricing page links to legacy plans for accounts that signed up before December 10, 2024. Those plans may differ, so check which plan your account and seats are actually on.
Ask Docker for a written quote that states seat count, billing period, plan eligibility and the pull limit that applies to your accounts, starting with the Docker pricing page.
Harbor is open-source software licensed under Apache-2.0 according to its GitHub repository, so the software carries no license fee in the information we hold. Your costs are the infrastructure you run it on, the staff who operate it and any support you choose to buy. The CNCF records Harbor as graduated on June 15, 2020, which describes the project's maturity status within the CNCF and does not describe a support contract.
- License: Apache-2.0 lets you use, modify and redistribute the software under its terms, so your legal review centers on the license terms and your own distribution model.
- Costs you carry: Compute, storage, backup and the engineering time for installs, patching and upgrades recur for as long as you run Harbor, and they grow with image volume and availability targets.
- Upgrade work: Harbor v2.15.2 moved the bundled database from PostgreSQL 15 to PostgreSQL 18 on container startup and replaced Redis with Valkey. Its release notes recommend a backup before upgrading.
- Breaking changes: Harbor v2.15.3 blocked webhooks to internal network addresses by default and made signing unsigned images fail in projects that enforce content trust, so test changes before rollout.
- Support and editions: Confirm with the project or a provider whether paid support or edition terms exist before you assume none do.
Ask any provider for a written support scope that lists which upgrades, backups and patch windows are included, and check the license position against the Harbor GitHub repository before you build it into your policies.
How images move between Harbor, Docker Hub and Amazon ECR
This diagram is illustrative and shows one possible layout. CI pushes images to a self-hosted Harbor inside the customer network. Harbor replication rules then copy selected repositories to Amazon ECR, or pull selected images from Docker Hub. Rules can run push or pull, filter by name, tag or label, and trigger manually, on a cron schedule, or on push and retag. Separately, an ECR pull through cache rule pulls from Docker Hub using credentials held in AWS Secrets Manager, checks the upstream at most once every 24 hours, and serves the last cached image if Docker Hub cannot be reached. Confirm where each credential lives, the network path for the first pull, and the Docker Hub limits on your account.
Illustrative flow of images between CI, Harbor, Docker Hub and Amazon ECR.
What drives the running cost of each registry
Amazon ECR charges for storage and transfer, Docker Hub charges per user and caps pulls, and Harbor costs are the infrastructure and staff time you carry yourself. The cards below show which of these recur every month, which arrive with upgrades, and what to put in a written scope before comparing totals.
Amazon ECR usage charges
On Amazon ECR, storage and data transfer are the recurring charges, billed by usage each month. The pricing page example uses $0.10 per GB per month for private repository storage and $0.09 per GB for cross-Region data transfer out, while transfer between ECR and other services in the same Region is free. Pull through cache rules that sync from Docker Hub or GitHub Container Registry store upstream credentials in AWS Secrets Manager, a separate charge to confirm. Map where your pipelines and clusters run, because a pull from another Region is a cost to plan for.
ECR pricing pageDocker Hub subscriptions and pull limits
Docker Hub's per-user plans recur every month: Pro is $9 per user per month billed annually, Team is $15 and Business is $24 per user per month. Unauthenticated pulls are capped at 100 per 6 hours per IPv4 address or IPv6 /64 subnet, and Personal accounts get 200, so a busy CI pipeline may push a team to a paid tier. Pro, Team and Business accounts get unlimited pulls subject to fair use. Storage billing is deferred, with six months of notice promised. Confirm the enforced Personal pull limit, since the pricing page says 100 pulls per hour.
Docker pricing pageHarbor infrastructure and upgrade effort
Harbor is Apache-2.0 licensed, so its running cost sits in the infrastructure, storage, backups, upgrades and staff time you carry yourself. Upgrades are the recurring effort to plan for. Harbor v2.15.2 moves the bundled internal database from PostgreSQL 15 to PostgreSQL 18 on container startup and replaces Redis with Valkey, and its release notes recommend a backup before you upgrade. Harbor v2.15.3 blocks webhooks to internal network addresses by default and fails signing of unsigned images in projects that enforce content trust, so review those changes before rollout.
Harbor releasesWhat to ask for in a quote
Metered and self-hosted options only compare fairly against the same inputs, so write one scope first. Specify storage volume, pull volume per pipeline, the Regions where images must live and be pulled, identity requirements such as SSO and role mapping, and the support hours you need. Ask whether each figure is a recurring charge or a one-time setup cost. Fixed-scope work is agreed in writing before it starts, and DeployOpen's quote follows from that written scope.
What implementing Harbor involves and what the hosted services ask of you
Hosted registries move different decisions onto your team. For Amazon ECR, settle the AWS account and organization layout first, then fix a repository naming convention that your IAM policies and lifecycle rules can match. Pull through cache rules need upstream credentials for sources such as Docker Hub, and those are kept in AWS Secrets Manager, so someone must own their rotation. Check VPC routing before go-live, because the first pull through a cache rule may need a route to the internet, even when ECR is reached through an interface VPC endpoint (AWS pull through cache documentation). AWS Lambda cannot pull images through a pull through cache rule, so Lambda-dependent deployments need another pull path. For Docker Hub, the work is account and organization design, access tokens for CI, and confirming which plan includes single sign-on, since the pricing page lists it only for Docker Business.
Harbor moves the whole platform onto your side of the network, so the list is longer. Size compute and storage for your image volume and garbage collection runs, issue TLS certificates for the registry hostname, and decide the database and storage backend Harbor will use, confirming which parts your support terms cover. Wire identity next through LDAP/AD or OIDC single sign-on, and test group mapping before users depend on it. Review each replication rule as well: rules filter by repository name, tag, label and resource type, and they can run manually, on a cron schedule or on push and retag events. Take a backup before every upgrade. Each of these needs a named owner and a test before go-live.
Plan a runbook for the 2.15.x line before you pick a version. Release v2.15.2 upgrades the bundled database from PostgreSQL 15 to PostgreSQL 18 on container startup and replaces Redis with Valkey, so rehearse the upgrade on a copy and keep the reindexdb step ready for index problems. Release v2.15.3 fixed a batch of security advisories but made two breaking changes: webhooks to internal network addresses are blocked by default, and signing unsigned images fails in projects that enforce content trust. Check every webhook target and content trust project in your environment before you upgrade. Effort depends on your scope, so ask for a written scope and timeline before you compare Harbor's effort with the hosted services.
Amazon ECR vs Docker Hub vs Harbor: what buyers ask about cost and effort
What does Amazon ECR cost for a given image and transfer volume?
Amazon ECR bills mainly for stored image data and for data transfer out, so your cost follows the image sizes you keep, how long you keep them, and how many bytes leave the Region. The pricing page example charges private repository storage at $0.10 per GB per month and cross-region data transfer out at $0.09 per GB, according to the Amazon ECR pricing page. Transfer between ECR and other services in the same Region is free, so pulls from compute in the same Region add little beyond storage. Costs rise with the number of images and retained tags, multi-architecture builds that store several platform images, and pulls from other Regions, other clouds or on-premises clusters. New customers get 500 MB per month of private storage free for one year. For a quote, ask for a model based on your image sizes, retention policy, Region pairs and monthly pull volume, and confirm current rates for your Region.
Can Docker Hub pull limits break our CI pipeline?
Yes, if your CI runners pull anonymously or on a Personal account from shared IP addresses and cross the limit. Docker's usage documentation sets pull rates at 100 per 6 hours for unauthenticated users per IPv4 address or IPv6 /64 subnet and 200 per 6 hours for Docker Personal accounts, while Pro, Team and Business accounts get unlimited pulls subject to fair use. Docker's pricing page describes Personal as 100 pulls per hour with reasonable use when logged in, which conflicts with the usage documentation. Confirm the enforced limit with Docker in writing before you design around it. Check for runners sharing one egress IP, base images pulled on every build, and multi-architecture images, since Docker counts one pull per architecture. Paid plans are a recurring per-user cost, with Pro at $9 per user per month billed annually, so compare that with the effort of running a mirror inside your own network.
How much in-house effort does Harbor need to run well?
Harbor is Apache-2.0 licensed, so the effort is staff time, infrastructure and the skills to operate it. Four areas drive the work. Skills: Kubernetes or Docker host administration, PostgreSQL, object storage for image layers, TLS, LDAP, AD or OIDC integration, and scanning policy. Upgrades: release v2.15.2 moved the bundled internal database from PostgreSQL 15 to PostgreSQL 18 on container startup and replaced Redis with Valkey, and its notes recommend a backup before upgrading. Release v2.15.3 blocks webhooks to internal network addresses by default and fails signing of unsigned images in projects that enforce content trust, so test each upgrade against your pipelines. Backup and high availability: back up the database, registry storage and configuration together, rehearse restores, and design and test a layout that survives node loss. Ask your team to estimate monthly hours for each area.
Can our team run Harbor ourselves or do we need outside help?
Most teams with Kubernetes or Linux operations experience can run Harbor themselves, provided they own upgrades, backups and restore tests on a fixed schedule. Outside help makes sense when the team lacks PostgreSQL, storage or identity skills, when a compliance review needs documented controls, or when a first deployment must be hardened before it holds production images. DeployOpen plans, implements, integrates, hardens, backs up, upgrades, documents and supports self-hosted platforms inside your own infrastructure. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and ongoing support, upgrades and continuous testing are available as retainers. Your team needs a named registry owner, access to the cloud or data center accounts, decisions on SSO and project access, someone to approve upgrades and test pipelines, and time for handover.
How long does a Harbor rollout take from start to finish?
The duration depends on scope, so the timeline comes from the written scope for each engagement. Scope drivers include the number of projects and teams, the identity integration (LDAP, AD or OIDC), how many replication endpoints you connect, the storage backend, how many CI pipelines and clusters must be re-pointed, and the scanning and signing policy you enforce. Each one adds build, test and review cycles. The written scope should list deliverables, the dependencies on your team such as access approvals and identity provider settings, the cutover approach, and the acceptance tests. Ask for milestones with dates, the assumptions behind them, and the process for a change request if scope moves. DeployOpen does not publish a price list, and a quote follows from the same written scope.
Can images and Helm charts move between ECR, Docker Hub and Harbor later?
Usually yes, through Harbor replication or a registry client, but confirm each artifact type and path with a test before you commit. Harbor replication rules can be push or pull based, filter by repository name, tag, label and resource type, and run manually, on a cron schedule, or on push and retag events. Its replication endpoints include another Harbor, Docker Hub, a Docker registry and AWS ECR, so content can move in either direction. Harbor stores images and Helm charts as OCI artifacts, and since v2.8.0 it no longer includes ChartMuseum. Confirm that ECR and Docker Hub accept the OCI artifact types you store, such as Helm charts and signatures, and test one repository end to end. Migration effort grows with tag count, image size, and the hostnames referenced in pipelines and cluster manifests, which you must update separately.
How DeployOpen helps choose and implement a registry
DeployOpen plans, implements, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For this comparison, that means scoping the registry options against your hosting, data control and cost requirements, then building the option you choose, including Harbor deployments in your own environment. Most engagements are fixed-scope, with scope agreed in writing before work starts.
How we scope
- The written scope names which registry options are in play, such as ECR, Docker Hub, Harbor or a mix.
- Scope lists the image sources, pull paths and CI systems that must work before any design starts.
- Written scope should state storage volume, pull volume, regions and replication paths, since those drive registry costs.
How we build
- Configures Harbor projects, role-based access, LDAP/AD or OIDC single sign-on and scanning if Harbor is chosen.
- Sets up replication rules between Harbor and ECR or Docker Hub, with filters, schedules and bandwidth limits where needed.
- Configures ECR pull through cache rules and tests whether a first pull needs internet routing from your VPC.
How we hand over
- Documents the chosen registry's access model, replication rules, backup steps and upgrade path for your own team.
- Hands over Harbor upgrade notes covering pre-upgrade backups and breaking changes such as blocked internal webhooks.
- Documents the Docker Hub pull limits and plan terms that apply to the option you choose.
How we support
- Offers ongoing support, upgrades and continuous testing as retainers after the fixed-scope build is handed over.
- Retainer scope can cover Harbor upgrades and patch releases, which Harbor publishes on more than one release line.
- Security testing of the registry setup, including SSO, admin settings and credential handling, can be added as a separate scope.

