Key facts
- Open WebUI is a self-hosted chat interface that talks to Ollama (and to other OpenAI-compatible servers). The project says Docker is the officially supported, recommended install on macOS, Linux and Windows.
- The documented one-container command publishes the UI at http://localhost:3000, stores chats in a Docker volume, and reaches Ollama on your machine via
host.docker.internal. You should set a durableWEBUI_SECRET_KEYor every recreated container will log everyone out. - Image tags, with download sizes the docs checked on October 16, 2026 for Linux/amd64:
:mainabout 1.62 GB (full app, including bundled speech-to-text and embedding models);:slim/:main-slimabout 197 MB. There is also:cuda,:ollama(Ollama bundled in the container), and:dev. - This guide follows the official quick start. It has not been used as a substitute for a security review. Do not expose the UI to the internet without reading Open WebUI’s hardening and sharing docs.
Requirements Docker and, unless you use the :ollama image, a host Ollama install. Not a substitute for Open WebUI’s hardening guide if you expose the UI beyond localhost.
If you want a ChatGPT-style window on top of local models, Open WebUI is the usual answer. This guide covers the official Docker install, how to point it at Ollama, and the settings that are easy to get wrong.
Before you start
- Install Docker (Docker Desktop on Windows and macOS is fine).
- Install Ollama on the host, unless you plan to use the all-in-one
:ollamaimage. - Pull a small model so you can test the UI, for example
ollama pull gemma4:e2b. See our Gemma 4 guide if you need a size chart. - Generate a secret key and keep it somewhere safe:
openssl rand -hex 32
You will paste that value into WEBUI_SECRET_KEY.

The recommended Docker command
From the quick start, replace your-secret-key with the hex string you just generated:
docker run -d -p 3000:8080 \
--add-host=host.docker.internal:host-gateway \
-v open-webui:/app/backend/data \
-e WEBUI_SECRET_KEY=your-secret-key \
--name open-webui \
--restart always \
ghcr.io/open-webui/open-webui:main
What the flags mean, in the project’s own terms:
| Flag | Role |
|---|---|
-p 3000:8080 |
The UI is on port 3000 of your machine. Change the left number if 3000 is taken. |
-v open-webui:/app/backend/data |
Chats, users and settings live here. Never run without a volume if you care about keeping them. |
--add-host=host.docker.internal:host-gateway |
Lets the container reach Ollama (or anything else) on the host. |
--restart always |
Comes back after a reboot. |
-e WEBUI_SECRET_KEY=... |
Set it once and reuse it when you recreate the container. |
Open http://localhost:3000. The first account you create becomes the admin. Open WebUI is documented to look for Ollama at http://host.docker.internal:11434. If the model list is empty, confirm that ollama serve is running and is listening on the default port. On some Linux setups you may also need to set OLLAMA_HOST=0.0.0.0 so the server accepts connections from the container; check Ollama’s docs for the current flag.
Which image to pull
:main— the recommended default. Larger download, bundled local speech and embedding stacks included.:slim— same chat experience with an external provider or a host Ollama, about 197 MB instead of 1.62 GB (figures from the docs, Linux/amd64, October 16, 2026). Use this if you do not need the bundled machine-learning extras.:cuda— NVIDIA GPU support (CUDA 12.8; add--gpus all). There is also:cuda126.:ollama— bundles Ollama inside the container. The docs’ all-in-one example is:
docker run -d -p 3000:8080 \
-v ollama:/root/.ollama \
-v open-webui:/app/backend/data \
-e WEBUI_SECRET_KEY=your-secret-key \
--name open-webui \
--restart always \
ghcr.io/open-webui/open-webui:ollama
Do not mix slim with CUDA or bundled Ollama; the docs say those combinations are not published as combined tags.
Updates, backups and a few outgoing calls
To update, pull the new image and recreate the container with the same volume name and the same WEBUI_SECRET_KEY. Back up the volume first; the project has a Backup & Restore guide.
A stock install, the docs say, makes a few outbound calls on its own: a GitHub version check (off with ENABLE_VERSION_UPDATE_CHECK=false), a model-list request to a default OpenAI connection (remove that connection or set ENABLE_OPENAI_API=false if you do not want it), and a Hugging Face check for the local embedding model at startup (off with RAG_EMBEDDING_MODEL_AUTO_UPDATE=false).
If you want to share the UI on your network, read the official sharing and hardening guides first. An open admin interface on the public internet is a gift to whoever finds it.
Watch: Docker + Ollama on a private machine
Troubleshooting
- Can’t reach the UI. Check
docker psand the port mapping. Tryhttp://127.0.0.1:3000. - No models listed. Ollama is not running, or the container cannot see the host. Recheck
--add-hostand Ollama’s listen address. - Logged out after an update. The secret key changed. Recreate with the original
WEBUI_SECRET_KEY. - Windows GPU. Use Docker Desktop with the WSL 2 backend, and the project’s WSL notes in the same quick-start page.
Bottom line
Install Docker, set a fixed WEBUI_SECRET_KEY, and run the official :main (or :slim) container with a named volume. Point it at Ollama on the host, pull a model that fits your GPU, and back up the volume before every upgrade. Keep the UI off the public internet until you have followed the project’s hardening steps.
Sources: Open WebUI Quick Start, including image-size figures dated October 16, 2026. This guide was not hardware-tested as a full desktop install. Facts checked November 19, 2026.
Cover image: screenshot of Open WebUI: Quick Start / Open WebUI
