explainx.ai350K+ learn from us
TrendingAI News TodayExplainx for Business
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • TL;DR for ML engineers
  • Why Hugging Face added a registry
  • Enable and create your first repo
  • Push and pull workflows
  • Security and governance
  • What people ask when registries launch
  • Limits documented today
  • Kubernetes, Helm, and cosign
  • CI patterns that work with Hub rate limits
  • Pricing and storage tradeoffs
  • When to stay on AWS ECR or GCP Artifact Registry
  • Troubleshooting first pushes
  • Pairing with Transformers releases
  • Example Dockerfile layout for inference repos
  • Org settings: personal vs team enablement
  • Observability and rollback
  • Legal and export notes for dual-use models
  • Comparison with Docker Hub and GHCR
  • Spaces vs Container Repos: choose the right surface
  • Rate limits, caching, and CDN behavior
  • Teaching lab: first semester MLOps exercise
  • FAQ additions searchers will want
  • Related reading
← Back to blog

explainx / blog

Hugging Face Container Registry: Docker Images on cr.hf.co

Hugging Face, DevOps, Open Source, MLOps, Containers

Part of Open-Weight Models

On Dec 4, 2026 Hugging Face enabled Container Repos: OCI and Docker images on cr.hf.co beside models and Spaces, with Hub tokens, hf containers CLI, and Hub storage billing.

Dec 4, 2026·8 min read·Yash Thakker
add explainx.ai
go deep
Hugging Face Container Registry: Docker Images on cr.hf.co

Hugging Face turned on Container Repos December 4, 2026 so teams can push Docker and OCI images to cr.hf.co next to models, datasets, and Spaces. The feature announcement is on the Hugging Face changelog; operational detail lives in Container Repos documentation.

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

350K+ Students Already Joined

TL;DR for ML engineers

table · 2 cols
StepAction
EnableToggle Container Repos in personal or org account settings
Create repoUI at huggingface.co/new-container or hf containers create ORG/NAME
Authdocker login cr.hf.co with HF username + token (read pull / write push)
Tagcr.hf.co/ORG/NAME:TAG (lowercase paths)
Pushdocker push or hf containers push for incremental layers
BillingImages use Hub storage quotas per pricing pages linked from docs

Kubernetes-style pods wheel illustrating Hugging Face OCI container registry on the HubKubernetes-style pods wheel illustrating Hugging Face OCI container registry on the Hub

Why Hugging Face added a registry

Documentation lists motives that matter for AI builders:

  • Same org RBAC as models—no parallel registry user database.
  • CDN-backed Xet storage for layers, with egress included per plan marketing copy.
  • Standard OCI clients—Docker, Podman, containerd, Kubernetes, Helm, cosign—without proprietary-only tooling.
  • Automatic garbage collection of untagged images so storage tracks meaningful tags.

That positions the Hub as artifact hub for the full loop: weights, datasets, Spaces demos, and now runnable images for off-platform inference.

explainx.ai covered native TPU support in Transformers and Molmo 3 open VLMs; Container Repos solve the “how do I ship the server Dockerfile?” gap those models still leave open.

Enable and create your first repo

Per changelog and docs:

  1. Open account settings (personal) or organization settings (admins).
  2. Enable Container Repos.
  3. Create a repo via UI or CLI:
bash
hf extensions install hf-containers
hf containers create my-org/inference-server --private

Organizations may need the toggle before members see new-container flows—docs historically mentioned private beta contact for some tenants; the December 4 changelog frames broader settings enablement.

Push and pull workflows

Docker path (from official docs):

bash
echo $HF_TOKEN | docker login cr.hf.co -u USERNAME --password-stdin
docker tag my-app:latest cr.hf.co/my-org/my-app:v1
docker push cr.hf.co/my-org/my-app:v1
docker pull cr.hf.co/my-org/my-app:v1

hf containers path for iterative builds:

bash
hf extensions install hf-containers
hf auth login
hf containers build -t cr.hf.co/my-org/my-app:v2 .
hf containers push cr.hf.co/my-org/my-app:v2

Docs note hf containers may change digests versus plain docker push because layers stay uncompressed on Xet—use --preserve-digests if cosign or deployment pins require docker-compatible hashes.

Layered transport trays moving a chip like container layers on a Hub registry CDNLayered transport trays moving a chip like container layers on a Hub registry CDN

Security and governance

Container images inherit Hub visibility and role policies. Before widening write tokens:

  • Scan images in CI the same way you scan model pickles.
  • Pin digests in Kubernetes manifests when teams mix hf containers and docker push.
  • Separate production orgs from experiment orgs—registry spam is now as easy as public model uploads.

For Kubernetes deploys, compare with SageMaker SOCI fast-start containers if you split AWS training and Hub-hosted weights.

What people ask when registries launch

“Is this replacing Docker Hub?” No—it's an optional host tied to Hub identity. Use it when models and servers should live under one org.

“Can I run on-prem?” You pull to your cluster; execution is still on your GPUs or CPUs.

“Does Transformers bundle containers?” No—install library via pip; registry holds your Dockerfile outputs.

Limits documented today

Official docs cite 100 GB layer caps, 4 MiB manifest caps, lowercase names, and eventual consistency on tag lists after push. Plan CI retries if automation polls tags immediately.

Kubernetes, Helm, and cosign

Documentation states Helm charts push to oci://cr.hf.co/ORG paths where chart repos must pre-exist—same NAME_UNKNOWN failure mode as Docker. For Kubernetes:

  1. Create the container repo before your CI job first runs.
  2. Store HF_TOKEN as a pull secret in the namespace that runs inference.
  3. Pin image: cr.hf.co/org/app@sha256:… in manifests to survive retag races.

cosign and SBOM referrers are supported as OCI referrers, aligning with supply-chain scrutiny culture in ML infra. Sign releases in CI after docker push or use hf containers push --preserve-digests when signatures bind to docker-style digests.

CI patterns that work with Hub rate limits

Docs recommend logging in before heavy pull bursts so throttling attaches to your account rather than a shared NAT IP. In GitHub Actions:

  • Cache docker buildx layers locally when hf containers is unavailable on the runner.
  • Separate build (needs write) from deploy (needs read only) tokens.
  • Rotate tokens when org members offboard—registry access tracks Hub roles.

Pricing and storage tradeoffs

Images bill against Hub storage quotas. hf containers trades faster iterative pushes for larger stored layers because Xet keeps uncompressed blobs—budget teams should monitor hf.co/storage dashboards after the first weekly release train.

Untagged image GC helps, but mutable latest tags in production can still hide dangling layers until you adopt immutable tags per release.

When to stay on AWS ECR or GCP Artifact Registry

Stay on hyperscaler registries when you need tight IAM role chaining inside one cloud, regional replication SLAs, or FIPS endpoints. Move inference images beside weights on HF when:

  • Your org already centralizes models on the Hub.
  • External collaborators pull weights and servers with one token family.
  • Egress to HF CDN is cheaper than cross-cloud weight download plus separate registry egress.

Troubleshooting first pushes

table · 3 cols
SymptomLikely causeFix
NAME_UNKNOWN on pushRepo not createdhf containers create or UI
401 on pullMissing read tokenRefresh secret, docker login
Digest mismatch in cosignMixed hf containers / docker pushes--preserve-digests or pick one tool
Tag missing in UIEventual consistencyRetry listing after ~minute

Pairing with Transformers releases

The same week’s transformers v5.26.0 release added native Molmo 3—see our Molmo update. Typical stack: container pins CUDA + server, pip pins transformers, HF hub pins weights.

Example Dockerfile layout for inference repos

A minimal pattern (illustrative—not a vendor recipe):

dockerfile
FROM nvidia/cuda:12.4.1-runtime-ubuntu22.04
RUN pip install transformers torch accelerate
ENV HF_HOME=/cache
COPY serve.py /app/serve.py
WORKDIR /app
CMD ["python", "serve.py"]

Build locally, tag cr.hf.co/my-lab/molmo-serve:2026-12-04, push after enabling Container Repos. Mount HF tokens at runtime via Kubernetes secrets, not baked layers.

Org settings: personal vs team enablement

Personal accounts can dogfood public images; production should live under organization repos so offboarding revokes registry access when Hub roles change. Org admins enable the toggle once; developers still need explicit create permissions on container namespaces to avoid squatting on cr.hf.co/my-org/legacy-name.

Observability and rollback

Tag immutable release IDs (v20261204-1) instead of only latest. When transformers bumps break serve.py, roll back by re-pulling prior digest—GC will not save untagged parents forever.

Log cr.hf.co pulls in your cluster autoscaler metrics; spiky pulls often mean replica churn, not organic traffic.

Legal and export notes for dual-use models

Container images that bundle weights (not just code) may fall under your org’s export policy even when weights also live on the Hub. Many teams keep images code-only and hf hub download at pod start to simplify compliance reviews—registry still helps pin Python/CUDA layers.

Comparison with Docker Hub and GHCR

table · 3 cols
Featurecr.hf.coDocker Hub / GHCR
AuthHF tokensSeparate accounts
Sits beside weightsYesRequires mirroring
Xet incremental pushhf containersVaries
Enterprise SSOHub org rolesPlatform-specific

Pick cr.hf.co when your identity plane is already Hugging Face; otherwise mirror if policy mandates AWS/GCP only.

Spaces vs Container Repos: choose the right surface

Spaces remain ideal for Gradio demos and low-traffic shared UIs tied to a single repo. Container Repos target production inference you run on your GPUs or customer VPCs. A common pattern post-December 4:

  1. Keep a Space for marketing demos.
  2. Publish production image to cr.hf.co.
  3. Link both from the model card so researchers and SREs find the right artifact.

Rate limits, caching, and CDN behavior

Hub docs emphasize CDN-backed layer delivery—first pull in a new region may be slower; subsequent pulls benefit from edge caching. For multi-region Kubernetes, warm clusters by pulling during deploy canary before shifting traffic.

If 403 appears on docker push, verify write scope, org membership, and that Container Repos toggle is enabled for that namespace—the changelog’s settings gate is easy to miss on fresh orgs.

Teaching lab: first semester MLOps exercise

Instructors can assign students to enable Container Repos, push a CPU-only image running a tiny model, and document token scopes in a one-page security memo. That teaches registry mechanics without cloud bills, and pairs with Docker basics already on explainx.ai.

FAQ additions searchers will want

Does cr.hf.co replace Hugging Face Inference Endpoints? No—Endpoints are managed hosting; Container Repos are artifacts you host elsewhere.

Can I mirror cr.hf.co to ECR? Yes with skopeo or pull-tag-push automation; you lose single-pane Hub billing but satisfy cloud-only policies.

Will Spaces Docker SDK automatically use cr.hf.co? Check current Spaces docs when upgrading; December 4 news is explicitly about Container Repos, not retroactive Spaces migrations.

Teams standardizing on one Hub org for 2026 should add registry URL and token rotation date to their internal MLOps runbook the same week they bump transformers—otherwise Docker secrets rot while Python deps move forward, and on-call inherits mysterious pull failures during demos.

Document the December 4 changelog link in that runbook so new hires know Container Repos are optional until an admin flips the setting, which prevents wasted debugging time on NAME_UNKNOWN errors from skipped enablement steps.

Related reading

  • Hugging Face TorchTPU native Transformers
  • Molmo 3 open VLM on Hugging Face
  • What is Docker first image guide
  • Apple Container 1.0 on macOS
  • SageMaker SOCI indexed images
  • OpenEmbed multimodal embeddings release

Registry URLs, CLI names, and limits follow Hugging Face changelog and hub documentation accessed December 4, 2026.

Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Share

Hugging Face
Workshops

Learn by building

Live, hands-on workshops on Claude, agents, and AI tooling — taught by practitioners, not slides.

Explore workshops →

Related posts

Nov 30, 2026

BaseRSI: A VLM That Writes Its Harness Into Its Own Weights

CUHK-Shenzhen researchers released BaseRSI on arXiv 2611.24578: a vision-language model that evolves its harness, then writes accepted gains into weights with forward-pass-only ReGap and ReKey edits, beating harness-in-request baselines on ten visual reasoning benchmarks.

Nov 30, 2026

UltraTerminals: Hugging Face Open-Sources 2,597 RL Agent Environments

Hugging Face harness-hub published UltraTerminals on November 30, 2026 with 2,597 runnable Harbor reinforcement-learning tasks spanning coding, Cedar and OpenFGA policy reviews, contracts, and business workflows.

Nov 27, 2026

Kandinsky ImageSR 2.0: An Open MIT Image Upscaler for 2x and 4x, Tested on Paper

KandinskyLab published Kandinsky ImageSR 2.0 on Hugging Face and GitHub: one open checkpoint that upscales images 2x or 4x with a Diffusers pipeline. Here is how it works, what it costs in GPU time, and what the release does not tell you.