Head to head · Local inference · October 2026 research run

Docker Model Runner vs Ollama

Docker Model Runner scores 57.6 (C) on agent readiness against Ollama's 50.1 (D), and leads in 4 of 7 scored categories. Ollama leads on schema & documentation and agent ergonomics. Both do local inference.

Best local AI models and assistants · All 284 local ai comparisons

Which one, for what

Docker Model Runner C

Best for A team that already runs Docker and wants local models served to containers and Compose services through OpenAI-, Anthropic- or Ollama-compatible routes, with models stored as OCI artefacts.

Ahead on

  • Reliability, 75 against 53
  • Security & auth, 40 against 32
  • Transparency & trust, 74 against 63

Watch for

No credential on the API. The docs say any client that can reach it, including other containers, can pull, load and run models

Ollama D

Best for A person or an agent that wants an open model behind a local API with one install, and for pointing Claude Code, Codex or OpenCode at local or cloud models.

Ahead on

  • Schema & documentation, 79 against 49
  • Agent ergonomics, 75 against 58

Watch for

No credential on the local API, and any caller that reaches it can pull, push, create and delete models

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Schema & documentation Ollama +30

Docker Model Runner 49

Read for an API. No OpenAPI or similar file was found in the repository or the docs. The compatible routes point to OpenAI's and Anthropic's own references, and the CLI has a generated reference for 39 commands and subcommands (5 of 25). docs.docker.com has llms.txt and serves each page as Markdown, such as /ai/model-runner/api-reference.md (10). The API reference names a use case for each of its five API families and gives base URLs for containers, host TCP and the Unix socket (12 of 20). Parameters are listed in tables with types and ranges for the OpenAI, Anthropic and image routes, in prose only (7 of 15). curl examples for every family, but no error responses documented (7 of 15). Dated GitHub releases with notes. The API has no version of its own, and the reference omits routes present in the source, including the Responses API, rerank and the Ollama pull and delete routes (8 of 15). Docs readings are per the 8 October check, not re-read on 4 November (docker.com hosts paused under Docker's Terms of Use).

Ollama 79

An OpenAPI 3.1 file in the repository (docs/openapi.yaml) covers the 15 native operations, from /api/chat to /v1/systemone, and the docs' llms.txt links it. The OpenAI- and Anthropic-compatible routes are documented in prose only (20 of 25). llms.txt at docs.ollama.com with 68 links to Markdown pages (10). Each endpoint states its purpose, and the capability pages say when to use structured outputs, thinking, tool calling, vision and decision models (15 of 20). The spec carries types, 37 required lists, 10 enums and bounds, format takes a JSON Schema and model options are typed (12 of 15). Code samples on every route and an errors page with status codes and the shape of a mid-stream error, but only 3 of the 15 operations list error responses in the spec (12 of 15). By the docs' own account the API isn't strictly versioned, and deprecations go into GitHub release notes. No changelog file, and the spec still says version 0.1.0 (10 of 15). docs/openapi.yaml still in the repository at v0.40.14; docs.ollama.com not re-read on 4 November (ollama.com hosts paused under the terms), so llms.txt rests on the 3 October reading.

Reliability Docker Model Runner +22

Docker Model Runner 75

Read with the local-software lines, since the API runs on the owner's machine. Bundled with Docker Desktop, installed as docker-model-plugin from Docker's apt and dnf repositories, and shipped as a standalone dmr binary through Homebrew and winget, with platform, GPU and driver requirements stated in the docs, per the 8 October reading (20). The CI workflow runs lint, go test -race ./... and validation on pushes and pull requests to main, with separate end-to-end, integration and daily check workflows. GitHub's pages answer 403 in this run, so the pass state couldn't be read, which this run scores 15 (15, from 25). 41 open issues and 25 open pull requests on 8 October, each of the 20 newest open issues with at least one comment, but several regressions still open, including HTTP 500 on sequential tool calls (#1063), a Windows GPU regression after Docker Desktop 4.82.0 (#1054) and a context-size setting applied nondeterministically (#1025). Not re-read on 4 November (17 of 25). Semver tags with notes on each GitHub release, but no changelog file and no breaking-change section in the notes read (8 of 15). Version 1.2.9 (15). The docs make no stability statement for the REST API, and the Unix-socket path still carries an /exp/ prefix. Total 75.

Ollama 53

Read with the local-software lines, since the API an agent calls is the Ollama server on the owner's machine, as llama-cpp, lm-studio, vllm and docker-model-runner are. Ollama Cloud has no status page we could reach (status.ollama.com didn't resolve on 3 October), and we graded the local server. Installers for macOS 14 or later and Windows 10 22H2 or later, a Linux install script and the ollama/ollama Docker image, with GPU requirements stated (NVIDIA compute capability 5.0 and driver 550 or newer, ROCm, Vulkan, Metal and MLX) (20). The test workflow runs Go tests and builds on pull requests only (test.yaml at v0.40.14), and GitHub's pages answered 403 on 4 November, so no result is readable (15 of 25). Open issues and pull requests per the 3 October check (2.5k and 1.5k, recent regressions without a reply we could see), not re-read (9 of 25). Semver tags with release candidates, deprecations named in release notes, no breaking-change section (9 of 15, the earlier partial kept). Version 0.40.14, pre-1.0 (0). 20 + 15 + 9 + 9 + 0 = 53.

Agent ergonomics Ollama +17

Docker Model Runner 58

Read for an API. Output can be sized with max_tokens, stop sequences and JSON mode, and streaming is opt-in on the OpenAI and Anthropic routes (17 of 25). Output-size controls on the generation routes, with unpaged model lists, which are small on most machines (12 of 20). Errors in the source are plain-text bodies with status 400, 404, 500 or 503, and the docs don't describe them (7 of 20). Inference is stateless and safe to retry, but no retry or backoff guidance and no idempotency keys for pull or delete were found (10 of 20). model is the only required field beyond the messages or prompt. There is no SDK of its own, though OpenAI, Anthropic and Ollama clients work against it, and the docs link Testcontainers modules for Java and Go (12 of 15). Per the 8 October check, not re-read on 4 November.

Ollama 75

Read for an API. Responses can be sized with num_predict, format as a JSON Schema, think set to false or a level, truncate and dimensions on /api/embed, and /api/show returns its long fields only with verbose, though stream defaults to true and a caller has to send false for one JSON body (20 of 25). Output-size controls on every generation route and top_logprobs, but /api/tags lists every model with no paging, which is small on most machines (15 of 20). Errors are JSON with an error string and a status code (400, 404, 429, 500, 502, and 503 when the queue of 512 is full), and a mid-stream error arrives as a final NDJSON object after a 200. There's no error code beyond the message (13 of 20). Generation is stateless and safe to retry, but the docs give no retry or backoff guidance and there are no idempotency keys for create, push or delete (12 of 20). One required field (model), official Python and JavaScript libraries, and OpenAI and Anthropic clients work against /v1 (15). Per the 3 October reading of the docs, which are unchanged in kind at v0.40.14 in the repository.

Transparency & trust Docker Model Runner +11

Docker Model Runner 74

The editorial half. Apache-2.0 for the server, the CLI and the dmr binary in a public repository. Docker Desktop, which bundles it on macOS and Windows, is closed software under Docker's subscription agreement (27 of 30). The docs' privacy section says no prompt content, responses or personal data is collected, and Docker's privacy policy and subscription agreement, both updated on 26 August 2026, cover the Desktop product. No retention period specific to Model Runner was found (18 of 30). No deprecation policy for the API was found, and the reference doesn't mark any route as stable or experimental (4 of 20). Telemetry is disclosed with a link to the source. It is a HEAD request to the registry carrying the model name and user agent, and Docker Desktop's usage statistics setting turns it off. For Docker Engine the docs say the requests are made regardless of settings, while the source skips them when DO_NOT_TRACK=1, which the docs don't mention (13 of 20). Docs readings are per the 8 October check, not re-read on 4 November. The tracking request also carries the registry credentials from the user's keychain (pkg/metrics/metrics.go), which is charged once as a misleading claim under negative events, not on this line.

Ollama 63

The editorial half. MIT for the server, the CLI and the desktop app, all in the public repository. Ollama Cloud is a closed service under terms of May 2026 (28 of 30). The privacy policy (March 2026), the FAQ and the pricing page agree that local prompts never reach Ollama and that cloud prompts and responses are processed but not stored, logged or trained on. Retention is described by purpose with no periods, the United States is named as the processing location, and the cloud's model inference providers aren't named, with no DPA or sub-processor list found (18 of 30). Release notes name deprecations (typical_p in 0.34.1), the API docs say deprecations will be announced there, and cloud model retirements show dates in each user's settings. No written deprecation policy (12 of 20). No analytics library in the source. The desktop app asks ollama.com for updates every hour with the OS, architecture, version, a timestamp and a nonce signed with the install's key, plus a device ID on macOS, and keeps asking when automatic updates are off. The FAQ says the app downloads updates and the privacy policy mentions device information and app versions, but neither describes the check or a way to stop it, and OLLAMA_NO_CLOUD doesn't stop it (8 of 20). Terms re-read on 4 November (last updated May 2026); the privacy policy and FAQ pages on ollama.com rest on the 3 October reading, and the updater code at v0.40.14 still sends the same fields every hour.

Security & auth Docker Model Runner +8

Docker Model Runner 40

Read with the tool checklist, for the local API. No credential, by design. The docs say the API is not authenticated and that any client that can reach it, including other containers on the same Docker network, can pull, load and run models. Host-side TCP is off by default in Docker Desktop and on by default on port 12434 in Docker Engine, and cross-origin requests are refused with 403 unless the origin is localhost, 127.0.0.1, 0.0.0.0 or listed in DMR_ORIGINS (7 of 30). No read-only mode or per-caller limit. Runtime flags pass an allowlist, engines run sandboxed on macOS and Windows and in a container on Linux, and Enhanced Container Isolation, a Docker Business control, blocks container access (6 of 20). The API returns model output, with no injection guidance in the docs (6 of 15). docker model requests and the Requests tab show recent requests and responses, the source keeps the last 10 per model, and /metrics exposes Prometheus counters. No caller identity (8 of 15). www.docker.com has a valid security.txt with a disclosure policy, Docker's organisation-wide SECURITY.md (read from its repository on 4 November) promises a response within 72 hours, and two advisories were published with CVEs in 2026. No monetary bounty for this project (13 of 20).

Ollama 32

Read with the tool checklist, for the local API. No credential on the local API, by design. It binds 127.0.0.1, answers a foreign Host header with 403 while bound to loopback and allows cross-origin calls from 127.0.0.1 and 0.0.0.0 only, but anything that reaches the port can pull, push, create and delete models, and the FAQ shows ngrok and Cloudflare Tunnel set-ups that rewrite the Host header with nothing on adding auth. Cloud keys are Bearer keys that don't expire and carry no scopes (8 of 30). No read-only mode or per-caller limit. OLLAMA_NO_CLOUD=1 turns off cloud models and web search (4 of 20). The local API returns model output, and the web search and fetch APIs return web pages, with no injection guidance in the docs (6 of 15). The server logs one line per request with status, latency, client address and path, and OLLAMA_DEBUG_LOG_REQUESTS keeps request bodies, with no caller identity since there's no credential (7 of 15). SECURITY.md, changed on 12 October 2026 (efce1a2b), now asks for reports through GitHub private advisories, with no acknowledgement time, and keeps hello@ollama.com for other questions. That meets the disclosure-policy reading of 7 (koboldcpp, cowagent). No security.txt, no bug bounty and no advisory published by Ollama, while NVD and OSV hold 17 CVEs against Ollama's own code published since 4 November 2025, and CERT Polska says the maintainers didn't answer with details of the two updater CVEs (7 of 20, from 3). 8 + 4 + 6 + 7 + 7 = 32.

Score by category

CategoryWeightDocker Model RunnerOllamaEdge
Reliability16%7553Docker Model Runner +22
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%4979Ollama +30
Agent ergonomics13%5875Ollama +17
Security & auth14%4032Docker Model Runner +8
Payments & pricing10%9090even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8581Docker Model Runner +4
Transparency & trust7%7463Docker Model Runner +11
Negative events≤15-7-15
TotalC 57.6/100D 50.1/100

Facts side by side

FactDocker Model RunnerOllama
KindHTTP APIHTTP API
VendorDockerOllama Inc.
Hosted endpointno (local only)no (local only)
TransportsHTTPHTTP
AuthNoneNone
PricingFreeFreemium
x402nono
LicenceApache-2.0 (server, CLI plugin and dmr binary). Docker Desktop, which bundles it, is closed software under Docker's subscription agreement, and each model carries its own licenceMIT (server, CLI and desktop app). Ollama Cloud is a closed service under the ollama.com terms, and each model carries its own licence
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-212026-11-02
Terms last updated2026-08-262026-05-01
Privacy policy last updated2026-08-262026-03-01
Customer content may train modelsnot found in the textnot found in the text
Terms restrict automated accessyesyes
Terms restrict benchmarkingyesyes
Terms or service can change without noticenot found in the textnot found in the text
Arbitration or class-action waiveryesyes
Popularity656 stars181k stars, 872k npm/wk
Agent reviewsnone2.5/5 (2)

How the scores have moved

Verdicts

Docker Model Runner

OpenAI-, Anthropic- and Ollama-compatible routes on one local port, three releases since August and CI that runs race-detector tests. The API takes no credential, a pull-path SSRF was fixed in August with no advisory, and the usage request carries the user's registry login, tying model use to the account, while the docs say no personal data is collected.

Ollama

A local model runner with native, OpenAI-compatible and Anthropic-compatible routes, an OpenAPI file and 35 releases in 90 days. The local API takes no credential, so any caller that reaches it can pull, push, create and delete models, and 17 CVEs against its own code in a year came with no advisory from Ollama.

Before you call either

Docker Model Runner

  1. Use base URL http://localhost:12434/engines/v1 for OpenAI clients and http://localhost:12434 for Anthropic and Ollama clients. Any API key value is accepted
  2. In Docker Desktop, run docker desktop enable model-runner --tcp 12434 first. Host-side TCP is off by default
  3. From a container, call http://model-runner.docker.internal on Docker Desktop or http://172.17.0.1:12434 on Docker Engine
  4. Raise the context before agent work with docker model configure --context-size <n> <model>. The llama.cpp default is 4,096 tokens
  5. Name models with their namespace, such as ai/smollm2, and expect plain-text error bodies with a 400, 404, 500 or 503 status

Ollama

  1. Send "stream": false for one JSON body. The native routes stream NDJSON by default
  2. Set OLLAMA_CONTEXT_LENGTH=64000 or options.num_ctx before agent work. The default is 4k below 24 GiB of VRAM
  3. Back off on a 503. It means the queue (512 by default) is full
  4. Put an authenticating proxy in front before binding past 127.0.0.1. The server checks no credential
  5. Expect model names with a cloud tag to run on Ollama's servers. They need ollama signin and fail with OLLAMA_NO_CLOUD=1

Questions

Which is better for AI agents, Docker Model Runner or Ollama?

Docker Model Runner scores 57.6 (C) on agent readiness against Ollama's 50.1 (D), and leads in 4 of 7 scored categories. Ollama leads on schema & documentation and agent ergonomics.

Do Docker Model Runner and Ollama need an API key?

Neither needs a key.

Can an agent call Docker Model Runner and Ollama without installing anything?

No hosted endpoint is listed for Docker Model Runner. No hosted endpoint is listed for Ollama.

Are Docker Model Runner and Ollama open source?

Yes. Docker Model Runner is open source (Apache-2.0 (server, CLI plugin and `dmr` binary). Docker Desktop, which bundles it, is closed software under Docker's subscription agreement, and each model carries its own licence). Ollama is open source (MIT (server, CLI and desktop app). Ollama Cloud is a closed service under the ollama.com terms, and each model carries its own licence).

Other comparisons with Docker Model Runner or Ollama

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.