Docker – explained simply
Docker packages a program together with everything it needs in an isolated container that runs the same everywhere.
Also: Container, Docker Desktop, Docker image
A Docker image is a read-only template, and a container is a running instance of it. By default, containers are isolated from each other and from your own PC, and they include everything the application needs.
Think of a container like a fully set up box: you do not have to install anything yourself, just start the box. Some AI tools offer Docker as an installation option. On Windows, Docker usually runs in the background through WSL 2, which makes setup a bit more involved.
What does that mean for you? Docker is worth it if a tool explicitly recommends it; for getting started, a portable version or a normal installer is usually easier.
Frequently Asked Questions
What is the difference between an image and a container?
The image is the template, and the container is the running program made from it. You can start any number of containers from one image.
Do I need Docker for local AI?
No. You install most programs like Ollama, LM Studio, or ComfyUI directly. Docker is mainly a common way to install Open WebUI.
Can a Docker container use the graphics card?
Yes. On Windows, this works with Docker Desktop, WSL 2, and an Nvidia card; the container is started with --gpus all for this.
Related terms
Errors where that matters
- could not select device driver "" with capabilities: [[gpu]] (Docker cannot pass the graphics card through to the container)
- Docker Desktop: WSL needs updating / WSL 2 installation is incomplete
- Ollama: model "…" not found, try pulling it first (model missing on this server)
- Ollama: pull model manifest: 412 (newer version required)
- Ollama: something went wrong, please see the ollama server logs for details (command doesn't get a usable response from the server)
- Open WebUI or AnythingLLM can't find Ollama
- Open WebUI: Ollama: 500, message='Internal Server Error' (Ollama reached, but model cannot respond)
- Open WebUI: WebSocket connection failed / is not an accepted origin (page keeps loading behind reverse proxy)
- Ports are not available: … bind: An attempt was made to access a socket in a way forbidden by its access permissions (Port is reserved by Windows)
- WSL 2: 0x80370102 – Virtualization not enabled