Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 3 min read Announcement mediumAdept

Beyond Containers: llama.cpp Now Pulls GGUF Models Directly from Docker Hub

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. Under the hood it follows the OCI distribution flow: fetch an auth token, retrieve the manifest, locate the layer with the GGUF media type (application/vnd.docker.ai.gguf.v3), download the blob by sha256 digest, and cache it locally. Names default to the ai/ organization and :latest tag, so `llama-server -dr gemma3` resolves to ai/gemma3:latest, while pinning tags or digests gives reproducible model artifacts across environments.

Assumes: container registriesLLM inference basics

Related posts

  • How to Build, Run, and Package AI Models Locally with Docker Model Runner

    Docker mediumAdept

    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. The guide walks through enabling the feature, pulling, tagging and pushing models to a local registry, one-shot and interactive prompts, curl calls to the chat completions API, and packaging your own .gguf file with a license as an OCI artifact. Constraints noted: only GGUF is supported, one model is loaded at a time, and models unload after 5 minutes idle. Compose v2.35+ can declare models as services and inject connection URLs into dependent containers.

  • Run LLMs Locally with Docker: A Quickstart Guide to Model Runner

    Docker mediumAdept

    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. Unlike `docker container run`, `docker model run` starts no container. The inference engine runs as a native host process for GPU acceleration, loads models on demand, and unloads them after 5 minutes of inactivity. Containers reach it at model-runner.docker.internal, and host processes can use an optional TCP port (12434), so any OpenAI client such as LangChain4j can point at it by setting a base URL and a model tag of the form {model}:{parameters}-{quantization}.

  • Run Gemma 3 with Docker Model Runner: Fully Local GenAI Developer Experience

    Docker mediumAdept

    Docker Model Runner (in Docker Desktop for macOS 4.40.0+) exposes an OpenAI-compatible API on localhost, so Gemma 3 can be pulled with `docker model pull ai/gemma3` and called through the standard OpenAI SDK by pointing baseURL at http://localhost:12434/engines/v1. A sample Comment Processing System uses it to generate synthetic user feedback, categorize sentiment, cluster comments with mxbai-embed-large embeddings, extract feature ideas as JSON and draft support replies, all with no external API calls. Per-task temperature and token limits can be tuned freely because local inference carries no per-token cost or rate limit.

  • How to Use Multimodal AI Models With Docker Model Runner

    Docker mediumAdept

    Docker Model Runner can run multimodal models such as Gemma3, Moondream2 and SmolVLM locally, accepting image and audio input through the CLI or an OpenAI-compatible chat completions API on localhost:12434. Images are sent as base64 data URLs in image_url content parts, and audio as input_audio parts. GGUF models like Ultravox can be pulled directly from Hugging Face. Multimodal support comes from a multimodal projector, a small adapter network that converts pixels or audio into token embeddings the language model can read. In Model Runner's OCI model artifacts it ships as a separate layer with media type application/vnd.docker.ai.mmproj.

  • Why Docker Chose OCI Artifacts for AI Model Packaging

    Docker mediumAdept

    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.

The quest for software engineering knowledge.

Look:
Layout: