Install Open-WebUI
This revision is from 2024/06/04 16:14. 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 run...
After installation, you can access Open WebUI at http://localhost:3000
More commands...
docker stop open-webui
docker restart open-webui
curl -fsSL https://ollama.com/install.sh | sh