mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #884] Docker conteiner does not start correctly Windows 10 #50907
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @devdimit93 on GitHub (Feb 24, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/884
Can not install Open-webui on Windows 10 with Ollama 0.1.27 via Docker. Container is always restarted with error
I used next command
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:mainTested with 3333, 8883 and other ports - does not work. Also disabled firewall.
Remote server in local network with any ports also does not work. Tested by next command
docker run -d -p 3000:8080 -e OLLAMA_API_BASE_URL=https://192.168.0.1 -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:mainAlso tried install ghcr.io/open-webui/open-webui:git-f69c0d2 . Got same error
Ollama correctly work with console on the 127.0.0.1:11434
@justinh-rahb commented on GitHub (Feb 24, 2024):
First read the Ollama FAQ section about environment variables. You must set
OLLAMA_HOST=0.0.0.0:11434andOLLAMA_ORIGINS=*Your
docker runcommands are lacking the:11434/apipart of the API URL, try:Also, on most networks
192.168.0.1would be your router, so that likely wouldn't be correct if that's what you actually used.@devdimit93 commented on GitHub (Feb 24, 2024):
I started it with old version :git-b793b5a
Full command in console
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:git-b793b5aIt work for me with localhost and in local network with any ports
@devdimit93 commented on GitHub (Feb 24, 2024):
In final experiments with network connection I just connected 2 laptops with ehternet wire and configured static IP address manualy.
Modification of the system variables did not help for last release - same JSON error in docker logs
@justinh-rahb commented on GitHub (Feb 24, 2024):
:git-b793b5ais 5 days old, if there's a broken build it's more likely to have been more recent. Try walking back from the top here: tagged images@devdimit93 commented on GitHub (Feb 24, 2024):
The last correct version for my laptops is git-792fe98
Next git-c391692 is already return JSON error
@justinh-rahb commented on GitHub (Feb 24, 2024):
For anyone else looking, that was from PR #772:
c3916927bb@jannikstdl commented on GitHub (Feb 24, 2024):
I will have a look, thanks
@jannikstdl commented on GitHub (Feb 24, 2024):
@devdimit93 I cant reproduce this error on Win 11:

Can you give more information on your hardware?
Also can you try to build the Dockerfile with ENV
RAG_EMBEDDING_MODELset to"intfloat/multilingual-e5-base"and run it again?@devdimit93 commented on GitHub (Feb 24, 2024):
Thank you! It is work correctly now.
I added
-e RAG_EMBEDDING_MODEL=intfloat/multilingual-e5-baseand problem has been fixed.Full command
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data -e RAG_EMBEDDING_MODEL=intfloat/multilingual-e5-base --name open-webui --restart always ghcr.io/open-webui/open-webui:main@tjbck commented on GitHub (Feb 24, 2024):
It should've worked without the env var, @jannikstdl could you look into this? Thanks!
@jannikstdl commented on GitHub (Feb 24, 2024):
Yes, should.
But this is the first issue with the standard embedding model.
Others aren't facing this behavior.
Maybe I can recreate this error.
Will have a look.
@jannikstdl commented on GitHub (Feb 24, 2024):
@devdimit93 can you try to clone the project and build the default Dockerfile with
docker build -t open-webui-test .and run it. Do you get the same issue?@devdimit93 commented on GitHub (Feb 25, 2024):
Container correctly start and work after maualy building. I used next commands:
For validation of results I removed previos containers and images. I left only rebuilded one.
After download container with next instruction - it return same JSON error. And also start work correctly after addition env variable.
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:mainRebuilded still work correctly.
@jannikstdl commented on GitHub (Feb 25, 2024):
@devdimit93 ok thanks!
@tjbck think we can close this since this seems to be an error with an old version of the image.
If there a more issues coming of in the future we see if this is a common problem but i don't think it is and for now it works. I also can't reproduce it.
@tjbck commented on GitHub (Feb 25, 2024):
Thanks guys!