Deploying Open WebUI with Docker on Ubuntu 24.04 LTS
This deep-dive covers open webui docker ubuntu with actionable analysis, practical implications, and expert insights.
Why Use Open WebUI for Local LLMs?
While the terminal CLI is great for testing, Open WebUI provides a ChatGPT-style interface with chat histories, document uploads for RAG, voice interaction, and prompt presets. Running it in a Docker container on Ubuntu keeps your host system clean.
Step 1: Verify Docker and Ollama Prerequisites
Verify that Docker is installed and running without requiring sudo permissions:
docker --version
docker ps
Ensure that your local Ollama daemon is active and responding to HTTP requests:
curl http://127.0.0.1:11434/api/tags
Step 2: Launching Open WebUI via Docker
On Linux, using host networking allows Open WebUI to connect directly to Ollama at http://localhost:11434 without bridging issues. Run the container with persistent storage:
docker run -d \
--network=host \
-v open-webui:/app/backend/data \
-e OLLAMA_BASE_URL=http://127.0.0.1:11434 \
--name open-webui \
--restart always \
ghcr.io/open-webui/open-webui:main
Step 3: Accessing the Web Interface
Open your browser and navigate to http://localhost:8080 (or your server's local IP address on port 8080). The first user account created automatically becomes the administrator.
Step 4: Managing Container Lifecycle
To inspect container logs, update the image, or restart the service, use standard Docker commands:
# View live container logs
docker logs -f open-webui
# Stop and restart the container
docker restart open-webui
# Pull the latest version and recreate
docker pull ghcr.io/open-webui/open-webui:main
docker stop open-webui
docker rm open-webui
# Re-run the docker run command above
Your local models installed in Ollama will automatically populate the dropdown menu at the top of the interface.
Was this technical analysis helpful?
Your feedback informs our benchmark updates and ongoing article audits.
FAQ
Frequently Asked Questions
Structured for search engines and AI answer systems (AEO/GEO).
By passing --network=host to Docker on Linux, the container can reach Ollama directly at http://localhost:11434 without complex port mapping.
Open WebUI persists all databases, uploaded files, and chat history in the volume mounted to /app/backend/data.
Yes. Open WebUI features built-in multi-user authentication and role-based permissions.
More answers in our FAQ hub.
Newsletter
Practical Linux & Applied AI Newsletter
Get new tested tutorials and benchmark comparisons delivered directly to your inbox. Zero spam.
Join Weekly guides readers getting our weekly digest.
- Practical Linux administration & terminal workflows
- Tested open-source AI setups & benchmarks
- Zero spam - unsubscribe anytime