mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-27 17:04:57 -05:00
[GH-ISSUE #21912] feat: Download LLM models to a mapped bind mount instead of inside Docker container #58278
Reference in New Issue
Block a user
Originally created by @Ratasan64 on GitHub (Feb 27, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21912
Check Existing Issues
Verify Feature Scope
Problem Description
All downloaded LLMs happen to be inside the Docker container, and is not stored on a bind mount set by YAML file.
Desired Solution you'd like
When pulling via openwebui, it'd be great to have the models stored on a central place so they don't get removed after every docker restart, this would also help to share the models with other dual boot operating systems too.
Alternatives Considered
No response
Additional Context
I'll leave my YAML's here in case that would be helpful.
For OpenwebUI hosted on PopOS NUC:
version: "3.9"
For Ollama, hosted on NUC:
Some additional findings below, I found the models inside the container itself, and not on the bind mount:
@rozatoo commented on GitHub (Feb 27, 2026):
Hi!
You're using
user: "1000:1000"on your ollama container which means it runs with a non-root user.Also,
OLLAMA_HOMEisn’t a real Ollama env var (it’s not in Ollama’s env config):https://github.com/ollama/ollama/blob/main/envconfig/config.go
This works for me:
Hope that helps, don't think this is a open-webui feature request though 😅
@Ratasan64 commented on GitHub (Feb 28, 2026):
Hey that worked!
I would never have round that. I'm not good with programming codes or figuring out env vars that aren't documented. You're probably right, this was more of a bad ollama documentation on this matter. Thanks!