GitHub Packages vs Docker Hub: which fits your pipelines
Choose GitHub Packages if your source code, pull requests and CI already run on GitHub and your container images, npm, Maven or NuGet packages are private artifacts that your own workflows build and consume. Choose Docker Hub if your main need is pulling public base images and your team can manage Docker subscriptions, pull limits and authentication for every build runner. The decision turns on four questions: where your code and CI already run, whether the workload is public base images or private artifacts, which package formats you need, and who will operate the registry. The first two usually narrow the choice most, so answer them before you compare costs.
Check the numbers that apply to your pipelines before you decide. The GitHub Docs billing page sets private package quotas by plan, from 500MB of storage and 1GB of data transfer on GitHub Free up to 50GB and 100GB on GitHub Enterprise Cloud, and storage is shared with GitHub Actions artifacts, so a pipeline that keeps many build artifacts can use up its quota. Container registry storage and bandwidth are currently free, with at least one month's notice promised before any change. On the Docker side, unauthenticated pulls are capped at 100 per 6 hours per IPv4 address or IPv6 /64 subnet, and Personal accounts get 200 per 6 hours, but Docker's pricing page describes 100 pulls per hour for Personal, so confirm the enforced limit with Docker before you size your runners.
Which product fits which scenario
This table maps seven common situations to the platform that fits each one better: GitHub Packages, Docker Hub, or a self-hosted registry such as Harbor. Read the why column as a condition, since each advantage holds only when the stated circumstance applies to your estate. Confirm limits, regions and feature tiers with the vendor before you decide.
| Scenario | Better fit | Why |
|---|---|---|
| Code and CI already on GitHub with private packages | GitHub Packages | Fits when Actions and repository permissions already govern access, and private storage stays within your plan's quota. |
| CI pulling public base images | Docker Hub (paid plan) or Harbor | Fits when your pulls fit a paid Docker plan. Unauthenticated pulls are capped at 100 per 6 hours per IPv4 address. |
| Private application images | GitHub Packages | Fits when images are built and deployed from GitHub Actions in the same repositories. |
| Builds hitting Docker Hub pull limits | Self-hosted Harbor | Fits when anonymous pulls from shared runner IPs exhaust limits. Harbor's proxy cache keeps upstream images inside your network. |
| SSO, SCIM and audit requirements | Docker Business or self-hosted Harbor | Docker Business lists SSO and SCIM. Choose self-hosted Harbor when your IdP and audit logs must stay on your infrastructure. |
| Maven or NuGet packages alongside images | GitHub Packages | Fits when one host for images, Maven and NuGet is the goal and Maven Central proxying is not needed. |
| Data residency rule | Self-hosted Harbor, with Skopeo for sync | Fits when images must stay in named locations. Confirm regions with GitHub or Docker before relying on hosted storage. |
Which registry path fits your images?
Start with where your code and CI run, since that sets how close the registry should sit to your builds. Next, decide whether the images are public base images or private artifacts your teams build and own. Public base images usually come from Docker Hub, where unauthenticated pulls are capped at 100 per 6 hours, so confirm the limit enforced on your account and consider a pull-through cache. For private artifacts, ask whether registry data must stay inside your own environment. If it must, a self-hosted registry such as Harbor is the endpoint. If it need not, GitHub Packages is a candidate. Confirm plan quotas with GitHub and Docker before you decide.
Decision path from where code runs to GitHub Packages, Docker Hub or Harbor.
GitHub Packages vs Docker Hub capabilities side by side
This table compares GitHub Packages and Docker Hub on the capabilities that usually drive a registry decision: package formats, private repository allowances, access tokens, identity controls and pull limits. Read each row against your own plan tier, since the answers depend on whether you are on Docker Personal, Team or Business and which GitHub plan you hold. Where a row says to confirm, check the current terms with the vendor before you commit, because plan limits and policies can change.
| Capability | GitHub Packages | Docker Hub |
|---|---|---|
| Package formats | npm, RubyGems, Apache Maven, Gradle, NuGet and Container registry for Docker images | Container images, as a hosted container registry |
| Private repositories | Private packages draw on a plan quota for storage and transfer, shared with GitHub Actions artifacts | Docker Personal includes 1 private repository; Team and Business include unlimited |
| Included storage and transfer | Free: 500MB storage and 1GB transfer per month; Pro and Team: 2GB and 10GB; Enterprise Cloud: 50GB and 100GB | Pro, Team and Business have unlimited pulls subject to fair use |
| Organization access tokens | Confirm organization token options and limits with GitHub before planning CI access | Team includes 10 and Business includes 100 organization access tokens |
| SSO and SCIM | Confirm SSO and SCIM availability for your GitHub plan with GitHub | Listed only for Docker Business |
| Unauthenticated and Personal pull limits | Container storage and bandwidth are currently free, with at least one month's notice before any change | 100 unauthenticated and 200 Personal pulls per 6 hours per IP or /64 subnet; confirm the enforced limit with Docker |
| Multi-architecture pull counting | Confirm with GitHub how multi-architecture image pulls count toward transfer quota | Each architecture in a multi-architecture image counts as one pull |
How each product bills and what drives the bill
Each vendor bills a different mix of components. GitHub Packages bills private storage and transfer against plan quotas, with overage controlled by budgets, while Docker Hub bills by user seat and pull limits, with storage billing still pending. Request a written quote from each vendor that covers seats, storage, transfer, pulls and renewal terms before you compare totals.
GitHub Packages included quotas
Private packages draw on a monthly allowance that depends on your plan. Free includes 500MB of storage and 1GB of data transfer, Pro and Team include 2GB and 10GB, and Enterprise Cloud includes 50GB and 100GB. Storage is shared with GitHub Actions artifacts, so a CI pipeline that keeps many build artifacts can use up space that container and package hosting also needs. Check your plan tier, your current storage use across packages and artifacts, and your artifact retention settings.
GitHub billing docsOverage controlled by budgets
GitHub's billing documentation says that private usage beyond the included quota is controlled by budgets that your organization sets. Ask your billing admin which budgets cover Packages, which cover Actions storage, who receives alerts when a budget is reached, and what happens to publishing and pulls once a limit is hit. Confirm these answers in writing, because the overage exposure depends on how those budgets are scoped.
Container storage currently free
GitHub's billing documentation states that Container registry storage and bandwidth are currently free, with at least one month's notice before any change. Today the registry line on your GitHub bill is zero, but a notice would start a clock for budgeting. Record image sizes, tag counts and pull volumes per repository now, so you can estimate exposure quickly when a notice arrives and ask GitHub to confirm the notice terms in writing.
Docker Hub per-user tiers
Docker Hub bills by user seat. Docker's pricing page lists Personal at $0, Pro at $9 per user per month billed annually ($11 monthly), Team at $15 per user per month billed annually ($16 monthly) and Business at $24 per user per month. Pulls set the usage limits: Docker's usage documentation gives Personal accounts 200 pulls per 6 hours, while the pricing page describes 100 pulls per hour, so confirm the enforced limit in writing. Single sign-on and SCIM are listed only for Business.
Docker pricingLegacy plans before December 10, 2024
Docker's pricing page links to legacy plans that applied before December 10, 2024. If your organization subscribed before that date, your seat price, private repository allowance and pull terms may differ from the current tiers. Ask Docker which plan each account is on, whether legacy terms carry into a renewal, and what the renewal price will be, and keep the answer in your contract file. Do not assume that the current list prices apply to your accounts.
February 2025 policy update
Docker's blog post dated February 21, 2025 (updated April 8, 2025) cancelled the previously announced Docker Hub pull consumption charges and delayed storage-based billing indefinitely. Docker promised six months of notice before any storage charges are introduced. Treat storage as a future cost with a notice clock, record the date of any notice you receive, and confirm with Docker that the six-month commitment still applies at your renewal.
Docker policy postWhat running each product takes in staff time
Both hosted services need little infrastructure work from your team, but they keep generating policy work that someone must own. On GitHub Packages, the recurring items are who holds write access to each package, which CI credentials publish and pull images and how often they are rotated, whether storage and data transfer stay within the included private quota for your plan, and how long old tags are kept. Docker Hub adds its own set. Organization access tokens are capped by plan (10 on Team and 100 on Business), and single sign-on and SCIM provisioning are listed only for Docker Business, so offboarding and seat changes need a named owner. Confirm each limit against the current plan terms before you commit, because plan terms change.
The Docker Hub pull limit is the item most likely to stall builds. Unauthenticated pulls share 100 per 6 hours per IPv4 address or IPv6 /64 subnet, so a fleet of CI runners behind one egress address can exhaust the allowance together, and the failure appears as a failed build. Teams usually change two things first. The first is authenticated pulls through a dedicated service account, which moves the limit to the account (200 per 6 hours on Docker Personal, and unlimited on Pro, Team and Business subject to fair use). The second is a pull-through mirror, which fetches an image from Docker Hub once and serves repeat pulls from inside your network. Docker's pricing page describes Personal pulls differently (100 per hour when logged in), so ask Docker to confirm the enforced figure for your account before you size a mirror.
Start the mirror decision with a review of your own pull data. Count the pulls your pipelines make against Docker Hub over a representative period, read the ratelimit-remaining header that Docker reports, and check whether any failed build matches a rate-limit response. Then record who owns the service account, where its credentials are stored, and who watches Docker's announcements, since Docker's April 2025 blog post said any future enforcement would be announced in advance. For setup options and the trade-offs of running a mirror, read Docker's guide to mirroring the Docker Hub library before you choose a path.
Where the data lives and what leaving involves
Both GitHub Packages and Docker Hub host your images on infrastructure the vendor operates, so location, export and exit are questions for the contract as well as the engineering team. The four cards cover where the data is hosted, how portable the image content is, which accounts and references tie you to each vendor, and what the exit work involves.
Where the images are hosted
Both GitHub Packages and Docker Hub store image layers and metadata on infrastructure the vendor runs, so your own network does not decide where the bytes sit. Before you commit to either, ask each vendor in writing which regional hosting options exist for your registry, which data processing terms apply, which subprocessors touch image data and how long logs and deleted versions are kept. Your security team should review those answers against your data residency rules.
Export of image content
Images pushed to either registry use OCI formats, so manifests and layers stay standard and can be read by any compliant client. Content that follows the OCI Distribution Specification is portable across any registry that follows the spec. The referrers API, which lists signatures and SBOMs attached to an image, depends on each registry implementing it, so confirm support with each vendor. Bulk export tooling is a separate question: ask whether each vendor offers a supported way to download all repositories, tags and attachments, and test that export on a non-production repository before you rely on it.
OCI distribution specAccounts, tokens and references
Access on GitHub Packages follows repository permissions and account membership, so a move means reassigning who can read and write each package. Docker Hub automation usually runs on organization access tokens, and the Docker pricing page lists 10 of them for Team and 100 for Business. The deeper lock-in sits in code: image names in Dockerfiles, CI files and Kubernetes manifests, plus oci:// chart references in Helm, all of which must be rewritten and redeployed.
Helm registry docsRe-tagging, repointing and verifying
A move comes down to four pieces of work: copy each image with its tags to the new registry, update every image reference in build and deployment files, re-point CI secrets and registry credentials to the new host, and verify digests before cutting over. Skopeo copies images between registries without requiring privileges, but digest comparison must be checked per repository because a tag can later point to different content. Plan a period where old and new references both resolve, so no pipeline breaks before the last one has moved.
Skopeo READMEWhen a self-hosted registry fits better than either product
A self-hosted route fits better when registry data must stay inside your environment, when pull limits interrupt CI runners, or when the packages you ship span formats beyond container images. For OCI images and Helm charts, Harbor is the usual starting point. It extends the open-source Distribution registry with replication, access control and auditing, and its proxy cache can sit in front of Docker Hub so builds pull from your own network. Harbor's documentation says proxy cache checks use HEAD requests, which the Docker Hub rate limiter does not count. Confirm this in your own setup by running a controlled pull test through the cache and checking the rate limit headers before and after. Helm charts are served as OCI artifacts, because Harbor 2.8 removed its bundled ChartMuseum server.
Distribution 3.1.2, released on September 24, 2026, is the lower-level option. It provides the registry API without Harbor's management layer, so you design authentication, storage cleanup and replication yourself. Skopeo complements either choice. It copies images between registries without elevated privileges, syncs an external repository into an internal registry, or writes images to a local directory for air-gapped transfer. For packages beyond containers, Pulp covers Maven, npm, Python, RPM and Debian through plugins. Teams that already self-host a forge can use the package registries in Gitea or Forgejo, which list container, Helm, Maven, npm, NuGet, PyPI, RPM and Debian formats. Neither forge proxies or caches upstream sources such as Docker Hub or Maven Central, so CI still needs a caching layer if pull limits are the problem.
Before you choose any option, confirm RubyGems and NuGet coverage for each one, because support for these formats varies and should be checked against each project's current documentation. Running a registry yourself means sizing storage against your image retention policy, issuing TLS certificates that every runner and cluster trusts, and backing up both blob storage and the metadata database with a tested restore. Upgrades and patching of the registry, its database and the host operating system recur on your schedule. Access design is the control you will revisit most: separate service accounts for each CI pipeline, read-only roles for deployment, and audit logs your security team can review. The recurring costs are infrastructure, storage and staff hours to operate the registry. Ask any implementation partner for a written scope that names each of these items.
What moving between the two products involves
The sequence moves container images, Helm charts and their attached metadata from one registry to the other without breaking the systems that pull them. Each step ends with a check that shows whether the next step is safe. Effort rises with the number of repositories, consumers and attached signing metadata.
Inventory images, packages, tags and consumers
List every container image, Helm chart and other package published to GitHub Packages or Docker Hub, with its tags, visibility and owner. Record every consumer that pulls them, including build pipelines, Kubernetes clusters, developer machines and scheduled jobs. Include the CI secrets and access tokens that authenticate those pulls and pushes, because each one will need a replacement. Count storage as well, since GitHub Packages storage is shared with GitHub Actions artifacts. The step is done when a ticket or spreadsheet lists every repository, consumer and credential, and a named owner has signed off on it.
Decide repository layout and naming
Choose how the target registry will group content, such as one repository per service or per team, and set a naming convention. Decide which artifacts stay public, which become private, and which groups get pull and push rights in the target. Confirm how your chosen self-hosted registry handles namespaces and access control before copying anything. The output is a written mapping from each old name to each new name, with the access groups attached to each project. Platform and security leads should approve that document before any artifact moves.
Copy artifacts and verify digests and metadata
Copy each image and chart with a registry client such as Skopeo, which copies between registries without needing elevated privileges. Keep the same tags and compare the source and target digests, because a matching digest proves the content is identical. Then check that signatures and SBOMs still resolve for each image through the referrers API, which lists the manifests that point at an image. Signatures and SBOMs are separate attached artifacts, so a copy that moves only the image will fail this check. Confirm that the target supports the referrers API. The step is done when every digest matches and every attached signature and SBOM is found on the target.
Update build files and Helm references
Change image references in Dockerfiles, Compose files, CI workflows and Kubernetes manifests to the new registry host and path. For Helm, switch chart dependencies and install commands to oci:// references, which Helm's registry guide describes for any OCI registry. Update image pull secrets in each cluster so nodes can authenticate to the new host. Where possible, pin references to digests so a tag change cannot alter what runs. Ask the owner of each consumer to review their diff. The step is done when a build from a non-production branch pulls from the new registry and the deployment logs show the new host.
Run both registries in parallel during cutover
Keep the old and new registries live together while consumers move over. Push new builds to both, so a rollback never requires a rebuild. Move consumers in groups and watch for pull errors, authentication failures and rate-limit responses on the source side. Docker Hub applies rate limits to unauthenticated pulls, so confirm which limits your build environment reaches before cutover. The step is done when every consumer in the inventory has pulled successfully from the new registry and no pull has fallen back to the old one during the observation window agreed in advance.
Retire old tokens and permissions
Revoke the personal access tokens, organization tokens and CI secrets that authenticated to the old registry, and replace them with credentials scoped to the new one. Remove repository access grants that no longer apply, and confirm that no service account still holds write rights on the old side. Keep a read-only copy of the old content for the period your records policy requires, and confirm that retention with your compliance team. Check what usage logging each platform keeps, so the final state is documented. The step is done when the usage records show no activity from inventoried consumers on the old registry and the inventory is updated to match.
What buyers ask before moving off GitHub Packages or Docker Hub
What does moving off GitHub Packages or Docker Hub cost, and what drives it?
Cost is mostly people and infrastructure, and the main drivers are repository count, number of consumers, data volume, signing, high availability and staffing. Expect one-time work for inventory, design, migration and cutover, plus recurring costs for hosting, storage, backups, patching and upgrades. Repository count and consumers drive the migration effort, because every pipeline, cluster and build job that pulls an image needs a new address and credentials. Data volume sets storage and backup sizing. Signing and signature checks add work if your pipelines verify images today. High availability adds a second node set and failover testing, and staffing decides who runs the registry after cutover. Ask for a quote with line items for discovery, build, migration, hardening, documentation and the run cost in your own infrastructure. DeployOpen does not publish a price list, and a quote follows from the written scope.
How long does it take to move images and CI pulls to a new registry?
Duration depends on the inventory and the cutover plan, so ask for milestones in the written scope before you fix a date. The plan depends on how many repositories and images you hold, how many pipelines, clusters and developer machines pull them, and whether both registries must run in parallel. Engineers should find every image reference in manifests, Helm values and pull secrets, then check certificates, DNS and any signature or SBOM checks that use the OCI referrers API. A pull-through proxy lets teams move gradually. Harbor's proxy cache documentation says cached images are checked with HEAD requests that do not trigger the Docker Hub rate limiter. Production change windows often set the pace, so agree them before scheduling.
Can our internal team migrate the registry alone, and what skills does it need?
Some internal teams can do it alone, if they already run Linux, containers or Kubernetes and operate TLS, identity and backup services in production. The skills list includes OCI registry concepts, reverse proxy and certificate management, SSO integration with your identity provider, storage and backup with tested restores, CI pipeline changes, and on-call coverage for a production service. Harbor serves OCI content such as images and Helm charts, while Pulp handles multi-format packages, so the team must know which formats it hosts before choosing the stack. Ask any implementation provider whether it will plan and build while your team owns runbooks and day-two work, or whether your team takes over fully at handover. DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted platforms, and most engagements are fixed-scope.
What does our side need to provide before a registry migration starts?
Before work starts, you provide the inputs that set the scope, and missing ones usually slow decisions later. Prepare the following:
- An inventory of repositories, tags, Helm charts and packages, with sizes and pull patterns where you can export them
- A named owner for each repository and for each consuming pipeline or cluster
- Change windows, freeze periods and a rollback plan that production teams accept
- CI access to the pipelines that push and pull, with service accounts that have only the permissions they need
- Written approval for where the data will live, including whether images may leave a region or network
Also confirm who signs off on the cutover date.
Does Docker Hub's pull limit alone justify moving off Docker Hub?
It depends on who pulls and how, so the limit alone should not settle the decision. The limit applies to unauthenticated pulls, and paid Pro, Team and Business accounts get unlimited pulls subject to fair use. Docker's pull 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. Docker's pricing page describes Docker Personal as 100 pulls per hour when logged in, which differs from the usage documentation. Confirm the enforced limit with Docker before you build a business case on either number. Shared CI runners behind one NAT address can share the unauthenticated quota, which you can check in your own pull logs.
Does GitHub's container registry storage stay free for private images?
GitHub Docs currently says container registry storage and bandwidth are free, with at least one month's notice before any change, but confirm this with GitHub before you plan around it. Other private packages draw on plan quotas. GitHub's billing page lists 500MB storage and 1GB data transfer on GitHub Free, 2GB and 10GB on GitHub Pro and GitHub Team, and 50GB and 100GB on GitHub Enterprise Cloud, with storage shared with GitHub Actions artifacts. Confirm which of those quotas apply to your container and package types. Model the cost case with your own storage and pull volume, so a future billing change does not invalidate the case.
Is DeployOpen a reseller or partner of GitHub or Docker?
No. DeployOpen is not a reseller, partner or certified provider of GitHub or Docker. DeployOpen is a Chainscore Labs company. Its work is to plan, implement, customize, integrate, harden, back up, upgrade, document and support self-hosted open-source registries, such as Harbor for container images and Helm charts and Pulp for multi-format packages, inside your own cloud accounts, data centers or air-gapped networks. DeployOpen can also run security testing on the registry and its access controls. It prepares evidence for compliance assessments, but independent auditors and certification bodies issue the reports. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How DeployOpen helps you choose and run the registry
DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms in your own cloud accounts, data centers or air-gapped networks. For GitHub Packages vs Docker Hub, we start from the artifacts you publish, who pulls them and where they must stay, then build the registry you choose inside your environment.
How we scope
- Written scope covering which images, Helm charts and language packages move from GitHub Packages or Docker Hub.
- Pull volume, user access, visibility and identity requirements mapped before any registry is chosen or deployed.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- Self-hosted OCI registry, such as Harbor, deployed in your environment with SSO and audit logging configured.
- Upstream mirroring of Docker Hub images, checked against your CI pull patterns before cutover.
- Migration of GitHub Packages container images and tags, with digests compared after each copy.
How we hand over
- Runbooks, architecture notes and access reviews documented for your platform and security teams.
- Security testing of the registry and CI credentials, with findings and fixes documented before handover.
- Evidence for your auditor on registry access, logging and backups; independent auditors issue any attestation.
How we support
- Backup configuration for registry storage and metadata, with restore steps documented in the handover.
- Ongoing upgrades and continuous testing available as a retainer after go-live.
- Confirm Docker Hub pull limits and GitHub Packages billing terms with each vendor before the written scope is signed.

