docker/model-runner
Docker Model Runner
What it solves
Docker Model Runner (DMR) removes the friction of pulling, running, and serving AI models (especially large language models) by wrapping them in familiar Docker workflows. Instead of manually managing inference servers, GPU configuration, and model files, developers get a simple CLI and REST API to fetch models from Docker Hub or any OCI-compliant registry and run them locally or in containers.
How it works
DMR ships as a Docker CLI plugin (docker model) and as a standalone binary (dmr) that bundles an inference daemon and a full management CLI. The daemon listens on a TCP port (default 12434) and handles model storage, pulling, and inference. It uses pluggable inference backends — llama.cpp (via a vendored llama-server) and optionally vLLM — and automatically detects NVIDIA GPUs when available. Models are cached locally (default ~/.cache/nim) and reused across runs. A REST API exposes endpoints for listing, creating, chatting with, and deleting models, plus a Prometheus-compatible /metrics endpoint. The project also includes dmrlet, a lightweight container orchestrator for stateless inference workloads, and an experimental Helm chart for Kubernetes.
Who it’s for
Developers who want to run AI models on their own machines or in Docker without deep infrastructure setup. It targets users of Docker Desktop (macOS/Windows), Docker Engine (Linux), and those who prefer a standalone binary with no Docker dependency. It’s also useful for teams that want to integrate model serving into existing Docker-based workflows or monitor inference performance.
Highlights
- Works as a Docker CLI plugin (
docker model) or as a standalonedmrbinary with no Docker required - Pull, run, list, and remove models with simple commands like
docker model run ai/gemma3 "Hello" - REST API for model management and chat completions, plus a Prometheus metrics endpoint
- Automatic NVIDIA GPU detection and support for CUDA and ROCm variants
- Persistent model caching and container reuse across runs
- Supports interactive chat mode and single-prompt queries
- Multiple inference backends: llama.cpp (default) and vLLM (optional)
- Includes
dmrlet, a zero-configuration container orchestrator for AI inference - Experimental Kubernetes support via Helm chart and static YAML
Related
- Project
- Project
- Project
- Project
- Project