To update Open WebUI in Docker, back up the data volume first. Then run docker compose pull followed by docker compose up -d, or remove the standalone container, pull the target image and recreate it with the same settings. Reattach the same data at /app/backend/data to keep your chats. Open WebUI updating guide
Record your settings and back up the volume
Save your original run command or Compose file and record the running version for rollback. Use the full Docker inspect output to check the container’s image, port bindings and mounts. Keep the output private because it can contain environment variables with secrets.
docker inspect --type=container open-webui
Use your actual container name in the inspect, stop, log and Watchtower commands. By default, Compose names the open-webui service’s container <project>-open-webui-1 unless you set container_name. Open WebUI Quick Start
In Mounts, find the entry with Destination set to /app/backend/data. The backup example assumes the volume Name is open-webui. Use the actual name, which can have a project prefix in Compose. If you use a bind mount, back up the host directory given by Source. Docker volumes · Compose volumes
Stop Open WebUI before copying its local database. For the default named-volume setup, run the backup from the directory where you want the archive. Keep the previous backup in a separate directory if you update again on the same day. Open WebUI database migration guide · Open WebUI updating guide
docker stop open-webui
docker run --rm -v open-webui:/data -v "$(pwd):/backup" \
alpine tar czf /backup/openwebui-$(date +%Y%m%d).tar.gz /data
Before continuing, confirm that the archive lists your expected data files without error. Replace YYYYMMDD with the backup date. BusyBox tar options
tar -tzf openwebui-YYYYMMDD.tar.gz
If you use an external PostgreSQL database, also back it up separately using the Open WebUI database migration guide.
How to update the Open WebUI container by hand
Review the release notes before upgrading. The example uses the standard :main image. Use the same target tag in both docker pull and docker run, and keep your existing mounts, port and other flags. Open WebUI updating guide
docker rm -f open-webui
docker pull ghcr.io/open-webui/open-webui:main
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway \
-v open-webui:/app/backend/data \
-e WEBUI_SECRET_KEY="your-secret-key" \
--name open-webui --restart always \
ghcr.io/open-webui/open-webui:main
Replace the placeholder with your existing WEBUI_SECRET_KEY to keep sessions valid across container recreations. If you’re setting a persistent key for the first time, generate it with openssl rand -hex 32. See the Open WebUI updating guide.
The Docker install guide walks through the run flags. If you changed the host port, see how to change the Open WebUI port.
Update with Docker Compose
From your existing Compose project, run the commands below. For a pinned deployment, edit the image: tag in your Compose file before pulling. Open WebUI updating guide
docker compose pull
docker compose up -d
When the service’s image or configuration changes, Compose recreates the container and keeps its mounted volumes. Use docker compose up -d --force-recreate to recreate it even with no changes. To pull and start in one command, use docker compose up -d --pull always. Docker Compose up reference
This example shows where the image tag and data mount belong. Keep your existing Compose file and volume for the update. Set WEBUI_SECRET_KEY in the shell environment or the project’s .env file for the interpolation shown below. Open WebUI Quick Start · Docker Compose variable interpolation
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
ports:
- "3000:8080"
volumes:
- open-webui:/app/backend/data
extra_hosts:
- host.docker.internal:host-gateway
environment:
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY}
restart: unless-stopped
volumes:
open-webui:
Check the new version
Check the startup logs for the version you intended to deploy and for migration errors. Then open the UI, sign in and check that your chat history is present. Open WebUI updating guide · Open WebUI database migration guide
docker logs open-webui 2>&1 | head -20
The v0.11.3 release notes describe a fix that stops startup at the migration error. Earlier upgrades from v0.11.0 through v0.11.2 could continue and surface a missing column such as chat.timer_at later.
If Open WebUI starts but cannot reach your models, see Open WebUI not connecting to Ollama.
Update automatically with Watchtower
The Open WebUI updating guide uses nickfedor/watchtower because the original containrrr/watchtower is unmaintained and fails with Docker 29 and later. Automatic updates can introduce breaking changes or run migrations before you’ve reviewed the release. For production, pin a version and review the release notes before upgrading.
# Update once and exit
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
nickfedor/watchtower --run-once open-webui
# Check every six hours
docker run -d --name watchtower --restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock \
nickfedor/watchtower --interval 21600 open-webui
The Open WebUI updating guide lists WATCHTOWER_CLEANUP=true for automatically removing old images.
Pin a version instead of tracking :main
Choose a tag based on the image variant you need and whether you want it to move automatically. Open WebUI Quick Start
| Tag | What it selects |
|---|---|
:main, :latest | The same rolling main-branch build, with bundled speech-to-text and embedding models |
:dev | Rolling prerelease builds from the development branch |
:slim, :main-slim | The smaller image, about 197 MB versus 1.62 GB compressed on Linux/amd64 in the Quick Start comparison |
:cuda | NVIDIA GPU support using CUDA 12.8 |
:cuda126 | NVIDIA GPU support using CUDA 12.6 |
:ollama | An image with Ollama bundled |
:vX.Y.Z, :X.Y.Z | A fixed stable release |
:X.Y | A rolling tag that follows patches in one minor release line |
:git-<short-sha> | A fixed commit |
The v0.11.4 release notes describe what the slim image leaves out. Knowledge search needs PostgreSQL with pgvector, and PDF, Word and presentation uploads need a separate document extractor. Open WebUI Quick Start
Choose a release from the Open WebUI releases page. For example, to pin v0.13.4, set this Compose image line. With Docker Run, use the same image reference in both the pull and run commands above.
image: ghcr.io/open-webui/open-webui:v0.13.4
Roll back and restore
To roll back the image, repeat the update with the previous version tag. If the failed update ran a database migration, restore the pre-update backup before starting the older image. Changing the image tag leaves the migrated schema in place. Open WebUI updating guide
For a named-volume backup, stop the upgraded container and unpack the archive into a new, empty volume. Run this from the backup directory. Replace YYYYMMDD with the backup date and choose an unused volume name. Keep the original volume until rollback is verified. Docker volume restore example · Open WebUI restore command
docker stop open-webui
docker volume create open-webui-restored
docker run --rm -v open-webui-restored:/data -v "$(pwd):/backup" \
alpine tar xzf /backup/openwebui-YYYYMMDD.tar.gz -C /
Once extraction succeeds, recreate the container with the previous tag. For Docker Run, repeat the manual update commands with that tag and change the mount to -v open-webui-restored:/app/backend/data. Open WebUI updating guide
For Compose, set the previous tag and point your existing volume key to the restored volume. Compose volumes
volumes:
open-webui:
name: open-webui-restored
external: true
Then pull the old image and force Compose to recreate the service with the restored volume. Open WebUI updating guide · Docker Compose up reference
docker compose pull
docker compose up -d --force-recreate open-webui
Update multiple instances
For a release that changes the database schema, stop all replicas, let one instance migrate the database, then bring the others up on the new version. A rolling update across the schema change leaves old instances querying the new schema. Open WebUI updating guide
Evidence note. The steps are based on the Open WebUI and Docker documentation and Open WebUI release notes through v0.13.4, checked on 2026-11-21. The commands were not run for this guide.