Great question — answering as the UphillTech team:
Apologies if I have got the wrong end of the stick. I don't know much about this. I gather that you are running Ollama on your host machine and you are trying to access it on port 11434 at host.docker.internal , which is a Docker Desktop feature I believe. I don't use Docker Desktop. However, if the goal is just to get this working then you can start by using Docker host network. docker run --rm \ -e OLLAMA_API_BASE_URL=http://127.0.0.1:11434/api \ --add-host=127.0.0.1:host-gateway \ --net=host \ --name open-webui \ ghcr.io/open-webui/open-webui:main The --net=host will mean that the UI process will be able to access Ollama directly at 127.0.0.1:11434 on the host. Presumably this is what...
Full answer by datawookie: https://stackoverflow.stackexchange.com/a/78018539 (CC BY-SA 4.0).
Need it done for your business? UphillTech.