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.
TL;DR for ML engineers
| Step | Action |
|---|---|
| Enable | Toggle Container Repos in personal or org account settings |
| Create repo | UI at huggingface.co/new-container or hf containers create ORG/NAME |
| Auth | docker login cr.hf.co with HF username + token (read pull / write push) |
| Tag | cr.hf.co/ORG/NAME:TAG (lowercase paths) |
| Push | docker push or hf containers push for incremental layers |
| Billing | Images use Hub storage quotas per pricing pages linked from docs |
Kubernetes-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:
- Open account settings (personal) or organization settings (admins).
- Enable Container Repos.
- Create a repo via UI or CLI:
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):
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:
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 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 containersanddocker 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:
- Create the container repo before your CI job first runs.
- Store
HF_TOKENas a pull secret in the namespace that runs inference. - 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 buildxlayers locally whenhf containersis 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
| Symptom | Likely cause | Fix |
|---|---|---|
| NAME_UNKNOWN on push | Repo not created | hf containers create or UI |
| 401 on pull | Missing read token | Refresh secret, docker login |
| Digest mismatch in cosign | Mixed hf containers / docker pushes | --preserve-digests or pick one tool |
| Tag missing in UI | Eventual consistency | Retry 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):
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
| Feature | cr.hf.co | Docker Hub / GHCR |
|---|---|---|
| Auth | HF tokens | Separate accounts |
| Sits beside weights | Yes | Requires mirroring |
| Xet incremental push | hf containers | Varies |
| Enterprise SSO | Hub org roles | Platform-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:
- Keep a Space for marketing demos.
- Publish production image to
cr.hf.co. - 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.
