All stories

Hugging Face adds a container registry to the Hub

Hugging Face now hosts Docker and OCI images on the Hub through a new registry, cr.hf.co, so teams can keep deployment containers next to their models without paying for a separate registry.

Hugging Face has added Container Repos, a new Hub repository type for Docker and other OCI images. The new registry, cr.hf.co, serves them, and the company's Xet storage backend stores them, according to the company's documentation. Users turn the feature on with a toggle in personal or organization account settings.

Container repos sit inside an organization alongside its models, datasets and Spaces. They use the same members, roles, visibility settings and User Access Tokens as other repos, so there is no separate registry account. Images count toward the organization's Hub storage instead of a separate registry bill. Image layers are served through the Hugging Face CDN, with egress included in the plan. Images that no tag points to are deleted automatically.

The registry follows the OCI standard and works with Docker, Podman, containerd, Kubernetes, crane, skopeo, ORAS, Helm and cosign. It supports multi-arch images and referrers such as signatures and SBOMs.

Hugging Face recommends its own client, hf containers, an extension of the hf CLI. It stores layers uncompressed on Xet, so a push uploads only the parts of each layer that changed since the previous version, and pulls skip decompression. The downside is that images get different digests than with docker push and take up more storage. A --preserve-digests flag keeps the original digests but is slower. A copy command moves images from Docker Hub, ghcr.io, quay.io or registry.k8s.io without pulling them into Docker first.

The docs point to an official vLLM container page as an example. Per-gigabyte pricing is listed separately at hf.co/storage and is not in the documentation.

Sources