open-webui / docs

https://docs.openwebui.com
https://docs.openwebui.com
102 stars 115 forks source link

doc: rootless mode docker installation #11

Closed bwiercinski closed 3 months ago

bwiercinski commented 8 months ago

Is your feature request related to a problem? Please describe. I've tried to install webui on a docker running in rootless mode. Unfortunately, the instructions don't work for rootless. The --add-host=host.docker.internal:host-gateway does not work on rootless by design stack overflow. Also --network=host doesn't work docker docs. What I had to do is:

Describe the solution you'd like Improve documentation for other affected people.

Describe alternatives you've considered use socat https://stackoverflow.com/a/74979409/11226692

tjbck commented 8 months ago

Hi, Thanks for the suggestion! Feel free edit our troubleshooting.md doc and make a PR!

jonasbg commented 7 months ago

How does this work with podman. Another rootless provider?

GZGavinZhao commented 7 months ago

Podman works the same, except the --add-host becomes --add-host=host.containers.internal:host-gateway. For example, my command for running Ollama is:

podman run -d -p 3000:8080 --add-host=host.containers.internal:host-gateway -v <ollama-webui-datadir>:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

Note that as mentioned by the OP, with this method the Ollama server must be hosted at 0.0.0.0 instead of the default 127.0.0.1.

lainedfles commented 7 months ago

I've been using a Podman rootless configuration for some time. I've submitted pull request open-webui/open-webui#877 to update the README with details. This configuration doesn't require Ollama to listen anywhere but localhost. 🥂