Takeaway: On December 4, 2026, Hugging Face enabled Container Repos on the Hub. The new repo type hosts Docker and other OCI images next to models, datasets, and Spaces, and serves them from the cr.hf.co registry. Organization administrators and individual accounts can turn the feature on in settings, then create a repository. Details below come from that changelog entry and the Hub Container Repos documentation.
This is a registry feature on the Hub, not a change to how Hugging Face routes inference. It is distinct from the earlier Hub change that routed Inference Providers through OpenRouter.
What Container Repos are
According to the official docs, Container Repos are a repository type for Docker and other OCI images, served by the Hugging Face container registry at cr.hf.co and powered by the Xet storage backend. They live in an organization next to its models, datasets, and Spaces. Tags can be browsed on the Hub at https://huggingface.co/containers/<org>/<name>. The docs point to the official vLLM container page as an example; that page is at huggingface.co/containers/vllm/vllm.
Access follows the same members, roles, visibility, and User Access Tokens as other Hub repositories. There is no separate registry account to manage. Public images can be pulled without logging in. Private images use your Hugging Face username and a User Access Token as the password to cr.hf.co. A token with read scope is enough to pull; write is required to push.
Images count toward the organization’s Hub storage, whether the repository is public or private, and the docs say there is no separate registry bill. Layers are served through the Hugging Face CDN, with egress included in the plan. If you need current allowances or overage rates, use Hugging Face’s official Pricing and storage pages rather than a figure quoted here. This article does not invent prices or quotas.
The registry is a standard OCI registry. The docs say Docker, Podman, containerd, Kubernetes, crane, skopeo, ORAS, Helm, and cosign work as they are, including multi-arch images and referrers such as signatures, SBOMs, and other artifacts attached to an image. Image names are cr.hf.co/<org>/<name>, in lowercase. The docs also note that a Helm push appends the chart name to the URL, so the destination repository must already exist.
Enabling the feature and creating a repository
The changelog says you can turn Container Repos on from your account settings, then create a Container Repo. Organization admins can do the same in the organization’s settings. The docs describe a toggle in personal settings or the organization’s Account settings.
Create the repository before you push. A push to a missing repository fails with NAME_UNKNOWN. You can create one from the Hub UI at huggingface.co/new-container, from the CLI, or from the API. The official CLI example, after installing the extension, is:
hf extensions install hf-containers
hf containers create my-org/my-app --private
The docs also show an API create call:
curl -X POST https://huggingface.co/api/containers/my-org/my-app \
-H "Authorization: Bearer $HF_TOKEN" \
-H "Content-Type: application/json" \
-d '{"private": true}'
The recommended client: hf containers
Hugging Face recommends hf containers, an extension of the hf CLI, as the client for this registry. Install it with hf extensions install hf-containers. It stores layers uncompressed on Xet: a push uploads only the parts of each layer that changed since the previous version, and a pull downloads layers over many connections and unpacks them as they arrive, with nothing to decompress.
The official example command set is:
hf extensions install hf-containers
hf auth login
hf containers build -t cr.hf.co/my-org/my-app:v2 .
hf containers tag my-app cr.hf.co/my-org/my-app:v2
hf containers push cr.hf.co/my-org/my-app:v2
hf containers pull cr.hf.co/my-org/my-app:v2
hf containers run --rm cr.hf.co/my-org/my-app:v2
The client uses a Hugging Face User Access Token and needs Docker with the containerd image store, on Linux or macOS. Images it pushes can still be pulled by any OCI client, and it can pull images pushed by any client.
Because layers are stored uncompressed, images pushed with hf containers get different digests than images pushed with docker push, and they use more storage. If you need to keep the docker push digests, for signatures or deployments pinned by digest, the docs say to use hf containers push --preserve-digests. That path is slower: a changed layer is uploaded in full, and pulls decompress it, as with docker push.
You can also push and pull with Docker or another OCI client after logging in:
echo $HF_TOKEN | docker login cr.hf.co -u <username> --password-stdin
docker tag my-app 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
Copying images, Kubernetes, and GitHub Actions
hf containers copy can copy an image from another registry, such as Docker Hub, ghcr.io, quay.io, or registry.k8s.io, into a Container Repo without pulling it into Docker first. The destination repository must already exist. A destination without a tag takes the source’s tag, and every platform of a multi-arch image is copied. As with a normal hf containers push, the copy stores layers uncompressed and therefore gets different digests unless you add --preserve-digests to keep the source digests.
For Kubernetes, the docs say to store a read token in a docker-registry pull secret and reference that secret from your pods. Public images do not need a pull secret, but with one, pulls count against the account’s rate limits instead of the cluster’s IP address.
kubectl create secret docker-registry hf-registry \
--docker-server=cr.hf.co \
--docker-username=<username> \
--docker-password=$HF_TOKEN
For GitHub Actions, you can add a trusted publisher for your GitHub repository in the container repository’s Settings, under Trusted Publishers. The job then exchanges its OIDC ID token for a token that can only push to and pull from that repository, and that token expires after 60 minutes. Set HF_OIDC_RESOURCE to the repository and push with hf containers. Without a trusted publisher, the docs say to store a write token as a repository secret and set HF_TOKEN instead. A read-only publisher yields a token that can only pull.
Untagged images and cleanup
Images that no tag points to are deleted automatically, so storage follows what you tag. The docs say garbage collection deletes an untagged image a few hours later. Removing an image by digest deletes it immediately. If something still references the image, such as another tag, the delete is refused and the docs say the command lists what to remove first. This article does not invent a more precise garbage-collection interval than “a few hours.” To keep pulling an image by digest, keep a tag on it.
Frequently asked questions
What are Hugging Face Container Repos?
They are a Hub repository type for Docker and other OCI images, served from the cr.hf.co registry and powered by Xet storage. They sit next to models, datasets, and Spaces. Hugging Face enabled them on December 4, 2026.
How do I turn them on and create a repository?
Enable the feature in personal account settings or, for an organization, in the organization’s Account settings. Organization admins can enable it for the org. Then create a Container Repo in the UI at huggingface.co/new-container, with hf containers create, or through the API. Create the repository before pushing; a push to a missing one fails with NAME_UNKNOWN.
Do images have a separate registry bill?
No. Official docs say images count toward the organization’s Hub storage, public or private, with no separate registry bill, and that egress is included in the plan. See Hugging Face’s Pricing and storage pages for current allowances. This article does not invent prices or quotas.
Why does Hugging Face recommend hf containers?
It is the Hub’s own client. It stores layers uncompressed on Xet, so a push uploads only the parts of a layer that changed, and a pull downloads over many connections and unpacks with nothing to decompress. It needs Docker with the containerd image store, on Linux or macOS, and a Hugging Face token (read to pull, write to push).
When should I use –preserve-digests?
Use it when you need the same digests as docker push, for example for signatures or digest-pinned deployments. Because hf containers stores layers uncompressed, its default pushes get different digests and use more storage. --preserve-digests keeps those digests but is slower: a changed layer is uploaded in full, and pulls decompress it.
Can I pull public images without logging in?
Yes. Public images can be pulled without a login. Private images require your Hugging Face username and a User Access Token as the password to cr.hf.co. In Kubernetes, public images need no pull secret, but adding one makes pulls count against the account’s rate limits instead of the cluster IP.
How does GitHub Actions authentication work?
You can configure Trusted Publishers in the container repository’s Settings. The job exchanges an OIDC token for a credential that can only push to and pull from that repository and expires after 60 minutes. Set HF_OIDC_RESOURCE to the repository. Without a trusted publisher, store a write token as a repository secret.
What happens to untagged images?
They are deleted automatically. The docs say garbage collection removes an image a few hours after its tags are gone. Deleting an image by digest removes it immediately. Keep a tag on an image if you still need to pull it by digest.

Leave a Reply
You must be logged in to post a comment.