From 6fb5a37170264fe4ddaef1679fd695fed3371dc8 Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 19 Dec 2023 20:19:43 +0100 Subject: [PATCH 1/2] Add WSL Ubuntu (webui docker + ollama seperately) to TROUBLESHOOTING.md --- TROUBLESHOOTING.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index d0d8ce2d..9a29d828 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -45,6 +45,15 @@ Becomes docker run --platform linux/amd64 -d -p 3000:8080 -e OLLAMA_API_BASE_URL=http://example.com:11434/api --name ollama-webui --restart always ghcr.io/ollama-webui/ollama-webui:main ``` +## Running ollama-webui as a container on WSL Ubuntu +If you're running ollama-webui via docker on WSL Ubuntu and have chosen to install webui and ollama separately, you might encounter connection issues. This is often due to the docker container being unable to reach the Ollama server at 127.0.0.1:11434. To resolve this, you can use the `--network=host` flag in the docker command. + +Here's an example of the command you should run: + +```bash +sudo docker run -d --network=host -e OLLAMA_API_BASE_URL=http://127.0.0.1:11434/api --name ollama-webui --restart always ghcr.io/ollama-webui/ollama-webui:main +``` + ## References [Change Docker Desktop Settings on Mac](https://docs.docker.com/desktop/settings/mac/) Search for "x86" in that page. From 9f674aed4b94a70b505654577efa021110996cdc Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 19 Dec 2023 15:41:05 -0500 Subject: [PATCH 2/2] Update TROUBLESHOOTING.md --- TROUBLESHOOTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index 9a29d828..024f4732 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -51,7 +51,7 @@ If you're running ollama-webui via docker on WSL Ubuntu and have chosen to insta Here's an example of the command you should run: ```bash -sudo docker run -d --network=host -e OLLAMA_API_BASE_URL=http://127.0.0.1:11434/api --name ollama-webui --restart always ghcr.io/ollama-webui/ollama-webui:main +docker run -d --network=host -e OLLAMA_API_BASE_URL=http://127.0.0.1:11434/api --name ollama-webui --restart always ghcr.io/ollama-webui/ollama-webui:main ``` ## References