---
title: "Beyond Containers: llama.cpp Now Pulls GGUF Models Directly from Docker Hub"
description: "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."
url: "https://swe.quest/articles/beyond-containers-llama-cpp-now-pulls-gguf-models-directly-from-docker-hub-cdf9961778a715be"
canonical: "https://www.docker.com/blog/llama-cpp-pulls-gguf-models-from-docker-hub/"
source: "Docker"
published: "2025-09-19"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 3
tags: ["inference","containers","llms","ml-platform"]
---

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

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-09-19, 3 min read, Announcement. Original: [https://www.docker.com/blog/llama-cpp-pulls-gguf-models-from-docker-hub/](https://www.docker.com/blog/llama-cpp-pulls-gguf-models-from-docker-hub/)

## Summary

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.

Written by swe.quest, not by the author.

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

## Topics

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

## Prerequisites

- container registries
- LLM inference basics ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))

## Keywords

llama.cpp, Docker Hub, GGUF, OCI, Docker Model Runner, Gemma 3

## Related posts

- [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.
- [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.
- [Run Gemma 3 with Docker Model Runner: Fully Local GenAI Developer Experience](https://swe.quest/articles/run-gemma-3-with-docker-model-runner-fully-local-genai-developer-experience-c005339b3915484f.md): Docker · 2025-04-09 · Medium · 7 min read · LLMs, Inference & serving, Containers, JavaScript
  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.
- [How to Use Multimodal AI Models With Docker Model Runner](https://swe.quest/articles/how-to-use-multimodal-ai-models-with-docker-model-runner-087300aed5fd96dd.md): Docker · 2025-11-03 · Medium · 4 min read · Inference & serving, LLMs, Containers
  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.
- [Why Docker Chose OCI Artifacts for AI Model Packaging](https://swe.quest/articles/why-docker-chose-oci-artifacts-for-ai-model-packaging-8d56b3acd7f94cc6.md): Docker · 2025-06-18 · Medium · 8 min read · Containers, Inference & serving, LLMs
  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.

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)
