Hugging Face opens opt-in container repositories on the Hub

Teams can host Docker and OCI images alongside model weights. Here’s how to preserve and verify image digests when moving signed or pinned releases to the Hub.

Editorial cover: Hugging FaceEditorial cover: Hugging Face
Company marks identify their owners. Reference only; no endorsement.

Hugging Face said on December 4 that users and organization admins can enable Container Repos in their Hub settings. The opt-in lets teams publish Docker and other Open Container Initiative (OCI) images at cr.hf.co, alongside their models, datasets and Spaces. Teams shipping inference servers or containerized agent runtimes can distribute the runtime image under the same Hub organization that owns the model artifacts. Hugging Face changelog

A source OCI image branches into two copy paths to cr.hf.co. The default Xet copy can change the digest. A copy with --preserve-digests keeps the source digest.A source OCI image branches into two copy paths to cr.hf.co. The default Xet copy can change the digest. A copy with --preserve-digests keeps the source digest.
The default hf containers copy stores layers uncompressed for Xet deduplication. Use --preserve-digests when a deployment pin or signature depends on the source digest.

Hugging Face changelog page titled Enable Container Repos and dated December 4, 2026.
Hugging Face’s December 4 changelog entry announces the opt-in for Container Repos. · Original source

Container Repos use existing Hub organization roles, visibility settings and user access tokens. Standard Docker and OCI clients can push and pull, and Kubernetes can pull private images with a read token in an image pull secret. The public vLLM repository shows what readers can find on a container page. Its nightly tag lists both linux/amd64 and linux/arm64, alongside architecture-specific nightly tags. Hub Container Repos documentation · vLLM container repository

Choose whether to keep the digest before moving an image

A tag such as v1.2.0 can point to a different image over time. A digest identifies specific content. That difference matters when a deployment pins a manifest by digest or a release pipeline verifies a signature tied to that digest. The default hf containers push and copy paths store layers uncompressed for Xet deduplication. Rewriting compressed layers can change the image digest even when the filesystem inside the container is equivalent. A copy can retain the release tag while giving the destination image a different digest. Hub Container Repos documentation · Hugging Face CLI extension README

What the team is moving Which path fits What to check
A signed release or an image already pinned by digest Copy with --preserve-digests Compare source and destination digests, then verify the signature at the destination
A frequently rebuilt development image Try the default Xet-optimized push or copy Measure upload bytes and stored size, then record the destination digest for any deployment pin

Hugging Face illustrates the storage and transfer trade-off with a rebuilt 2 GB layer containing 100 MB of changes. If Xet can reuse the other 1.9 GB, the upload is roughly 100 MB. The rebuilt layer still counts as 2 GB toward Hub storage in that example. With digest preservation, a changed compressed layer uploads in full. Images share the owning organization’s Hub storage with other artifacts, so teams that keep many releases should compare stored bytes across their actual retention window as well as upload time. Hub Container Repos documentation · Hugging Face CLI extension README

Move one approved release before changing production references

Pick a release that already has a recorded digest and, if your deployment requires one, a verified signature. Create the destination repository with the intended visibility before copying the image. Use the exact approved source digest and give the destination an explicit version tag. This example uses placeholder namespaces and a placeholder digest.

hf containers copy --preserve-digests ghcr.io/example-org/inference@sha256:<approved-digest> cr.hf.co/example-org/inference:v1.2.0

Compare the remote manifest digest at both registries. For a multi-architecture image, compare the index digest and confirm the expected platform manifests are present. Check signature verification against the destination reference and confirm any required software bill of materials is discoverable there. Keeping the digest preserves the identifier those artifacts refer to. Their availability at the destination needs its own check. Hub Container Repos documentation · Hugging Face CLI extension README

Pull the destination reference by digest from a clean worker using the same read access as production. Start the serving process and run one representative inference request. Keep a version tag on each production or rollback release. The Hub garbage-collects images that lack a tag reference, directly or through a multi-architecture image. Record the new registry reference alongside the model revision so you can reconstruct which runtime served that model. Hub Container Repos documentation · Promoting a tested LangGraph image to the right listener

Sources

  1. Enable Container Repos
  2. Container Repos · Hugging Face
  3. GitHub - huggingface/hf-containers: Fast build, push, pull and run of container images on the Hugging Face registry (cr.hf.co), as an hf CLI extension · GitHub
  4. vllm/vllm - Container Image