---
title: "Why Docker Chose OCI Artifacts for AI Model Packaging"
description: "Docker Model Runner packages LLMs as a custom OCI artifact type rather than as container images, so models can be pushed, pulled and access-controlled through existing OCI registries like Docker Hub."
url: "https://swe.quest/articles/why-docker-chose-oci-artifacts-for-ai-model-packaging-8d56b3acd7f94cc6"
canonical: "https://www.docker.com/blog/oci-artifacts-for-ai-model-packaging/"
source: "Docker"
published: "2025-06-18"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 8
tags: ["containers","inference","llms"]
---

# Why Docker Chose OCI Artifacts for AI Model Packaging

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-06-18, 8 min read, Deep dive. Original: [https://www.docker.com/blog/oci-artifacts-for-ai-model-packaging/](https://www.docker.com/blog/oci-artifacts-for-ai-model-packaging/)

## Summary

Docker Model Runner packages LLMs as a custom OCI artifact type rather than as container images, so models can be pushed, pulled and access-controlled through existing OCI registries like Docker Hub. The format defines its own media types: a model config JSON exposing format, quantization, parameter count and size, plus GGUF and license layers. Model layers are always uncompressed single raw files, because high-entropy weights barely compress, and storing them this way lets inference engines memory-map them directly while identical files deduplicate into reusable blobs. Keeping models separate from inference engines lets users pick an engine build optimized for their hardware, and planned additions include runtime config, LoRA adapters, multimodal projectors and model index files.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- OCI image format ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- container registries
- LLM quantization basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Docker Model Runner, OCI artifacts, GGUF, Docker Hub, Hugging Face, containerd, ModelPack

## Related posts

- [Run LLMs Locally with Docker: A Quickstart Guide to Model Runner](https://swe.quest/articles/run-llms-locally-with-docker-a-quickstart-guide-to-model-runner-ccfbbb71db5d1485.md): Docker · 2025-04-04 · Medium · 5 min read · Inference & serving, LLMs, Containers, Developer tools
  Docker Model Runner, in beta with Docker Desktop 4.40 on Apple silicon, pulls LLMs packaged as OCI artifacts and serves them through an OpenAI-compatible API backed by llama.cpp.
- [Behind the scenes: How we designed Docker Model Runner and what’s next](https://swe.quest/articles/behind-the-scenes-how-we-designed-docker-model-runner-and-what-s-next-376205c328b89264.md): Docker · 2025-06-18 · Medium · 16 min read · Inference & serving, Containers, API design, System design, LLMs
  Docker Model Runner runs AI models locally and exposes them to both containers and host processes through Docker-style /models endpoints and OpenAI-compatible /engines/{engine}/v1 endpoints. llama.cpp is the first backend, but the API path leaves room for others like vLLM and MLX.
- [How to Build, Run, and Package AI Models Locally with Docker Model Runner](https://swe.quest/articles/how-to-build-run-and-package-ai-models-locally-with-docker-model-runner-acbc6d65548e5373.md): Docker · 2025-06-12 · Medium · 6 min read · Inference & serving, LLMs, Containers, Developer tools
  Docker Model Runner, enabled as a beta feature in Docker Desktop 4.40+, pulls GGUF-format LLMs from Docker Hub or Hugging Face and runs them locally via the \`docker model\` CLI or an OpenAI-compatible HTTP endpoint on localhost.
- [Beyond Containers: llama.cpp Now Pulls GGUF Models Directly from Docker Hub](https://swe.quest/articles/beyond-containers-llama-cpp-now-pulls-gguf-models-directly-from-docker-hub-cdf9961778a715be.md): Docker · 2025-09-19 · Medium · 3 min read · Inference & serving, Containers, LLMs, ML platforms
  llama.cpp can now pull and run GGUF models directly from Docker Hub via a new --docker-repo (-dr) flag, treating the registry as a versioned model repository using repository:tag syntax.
- [OpenCode with Docker Model Runner for Private AI Coding](https://swe.quest/articles/opencode-with-docker-model-runner-for-private-ai-coding-640e2f146435d737.md): Docker · 2026-01-15 · Medium · 8 min read · AI for coding, Inference & serving, LLMs, Containers
  OpenCode can use locally hosted models by pointing an @ai-sdk/openai-compatible provider in opencode.json at Docker Model Runner's OpenAI-compatible endpoint (localhost:12434/v1, with TCP enabled on Docker Desktop).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
