I installed this a few months ago but forgot about it, now i need to update it - how? i…
- User
I installed this a few months ago but forgot about it, now i need to update it - how? i use windows with the docker container
Assistant
The provided documentation doesn't offer a specific "update" command for Open WebUI running in a Docker container on Windows. However, updating involves pulling the latest image and recreating the container. Here's a breakdown of how to do it, along with best practices:
1. Back up your data:
This is crucial. Your chat history, settings, and other important data are stored in the
open-webuivolume. Before doing anything else, back this up. The easiest way is to copy the data directory to a safe location on your Windows machine. The location of the data directory depends on how you set up your Docker container initially. Look for the-vflag in the command you used. If you are unsure you can open therun-compose.shfile and check theOLLAMA_DATA_DIRenvironment variable. It's likely mapped to a local directory on your system. Find that directory and make a copy.2. Stop and remove the existing container:
Open a PowerShell window or command prompt and execute the following commands:
powershelldocker stop open-webui docker rm open-webuiThis stops the currently running container and removes it. Your data is safe because it's in the volume.
3. Pull the latest image:
Pull the latest version of the Open WebUI Docker image. Use the same tag you used initially (e.g.,
main,cuda,ollama). If you don't remember, usingmainis generally a good choice.powershelldocker pull ghcr.io/open-webui/open-webui:main # Or the specific tag you used before, like :cuda or :ollama4. Start a new container:
Now, run the
docker runcommand exactly as you did when you first installed Open WebUI, ensuring to use the same volume mapping to preserve your data. Refer to the original installation instructions or your command history. If you've lost the original command, you'll have to reconstruct it, paying attention to these details:- Ollama Integration: If you're using Ollama, make sure the
OLLAMA_BASE_URLenvironment variable is correctly set and that your Ollama instance is running. - GPU Support: If you're using GPUs, ensure you include the
--gpus allflag (or similar) in yourdocker runcommand.
- Ollama Integration: If you're using Ollama, make sure the
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.