Install Open-WebUI

This revision is from 2024/06/04 16:04. You can Restore it.

sudo apt update

sudo apt install docker.io

sudo systemctl start docker

sudo systemctl enable docker

sudo usermod -aG docker $USER

sudo chown $USER:$USER /var/run/docker.sock

Have an Nvidia or compatible GPU?

sudo lshw -c display

If you have compatible GPU

docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama

otherwise use the CPU

docker run -d -p 3000:8080 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama

Remove the failed GPU installation if you incorrectly installed the GPU version without having a compatible GPU

docker rm open-webui

Rerun either the GPU or CPU version command above...

docker pull open-webui/open-webui:latest

docker restart open-webui

  

📝 📜 ⏱️ ⬆️