From 951959a00bd9e925fff2ccf02d2a78f152ecf466 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 13 Oct 2026 09:54:29 -0700 Subject: [PATCH] llm, finalize the open-webui setup, network=host works great, still really unsure why the port mapping was not forwarding correctly. --- tasks/workstation/linux/software/llm.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/tasks/workstation/linux/software/llm.yml b/tasks/workstation/linux/software/llm.yml index ae1c1af..478347d 100644 --- a/tasks/workstation/linux/software/llm.yml +++ b/tasks/workstation/linux/software/llm.yml @@ -364,29 +364,36 @@ exec 2>&1 # Wait for Docker to start up. + while [ ! -S /var/run/docker.sock ]; do sleep 1; done # Ensure the old container is gone. + echo "RUN: Stopping..." docker stop open-webui && echo "RUN: Container stopped" || echo "RUN: Container already stopped." + echo "RUN: Deleting..." docker rm -f open-webui && echo "RUN: Container deleted" || echo "RUN: Container already deleted." # Start the open-webui program. + set -e - exec docker run --rm \ - -p {{ open_webui_port }}:8080 \ - --add-host=host.docker.internal:host-gateway \ + exec docker run \ + --rm \ + --name open-webui \ + --network=host -e PORT={{ open_webui_port }} \ -v open-webui:/app/backend/data \ {{ ("-e HF_TOKEN=" ~ hf_token) if hf_token else '' }} \ -e WEBUI_SECRET_KEY={{ open_webui_key }} \ - -e OLLAMA_BASE_URL=http://host.docker.internal:11434 \ - --name open-webui \ - ghcr.io/open-webui/open-webui + ghcr.io/open-webui/open-webui:main + + #-p {{ open_webui_port }}:8080 \ + #--add-host=host.docker.internal:host-gateway \ + #-e OLLAMA_BASE_URL=http://host.docker.internal:11434 \ mode: "0755" - name: Workstation | Linux | Software | LLMs | runit | open-webui | Script | Finish @@ -402,6 +409,7 @@ docker stop open-webui && echo "FINISH: Container stopped" || echo "FINISH: Container already stopped." + echo "FINISH: Deleting..." docker rm -f open-webui && echo "FINISH: Container deleted" ||