Skip to content
,

How to Update Open WebUI (2026): Docker, Docker Compose and pip Without Losing Chats

7–11 minutes
Woman in a co-working space with plants holding a tablet with an OPEN WEBUI card, hook update Open WebUI safely

Open WebUI ships new releases often, sometimes several in a week, with new features, model support and security fixes. Updating is easy once you know the right commands, but a careless update can sign every user out, lose settings, or leave you running the old version without realising it.

This guide shows how to update Open WebUI safely for every common install: Docker run, Docker Compose, the bundled Ollama image and pip. It also covers backups, rolling back, automatic updates with Watchtower, update notifications with Diun, and the fixes for problems people hit most after an update.

It follows the official Open WebUI “Updating” documentation as of November 2026, when the latest release on PyPI was 0.13.5 (25 November 2026).

TL;DR

  • Back up first: your chats, users and settings live in the open-webui volume at /app/backend/data.
  • Docker run: docker rm -f open-webui, docker pull ghcr.io/open-webui/open-webui:main, then run the same docker run command again.
  • Docker Compose: docker compose pull then docker compose up -d.
  • pip: pip install -U open-webui, then open-webui serve.
  • Stay signed in: set a fixed WEBUI_SECRET_KEY.
  • After updating: hard-refresh the browser with Ctrl+F5 (Cmd+Shift+R on Mac).

Check Your Current Version

  • In the app: as an admin, open Settings > General in the admin section. Check for updates compares your build with the latest GitHub release.
  • From Docker logs: docker logs open-webui 2>&1 | head -20 prints the version at start-up.
  • pip installs: pip show open-webui.

The update check is on by default (ENABLE_VERSION_UPDATE_CHECK) and is switched off when OFFLINE_MODE=true.

Pick an Update Strategy: :main or a Pinned Version

Your setup Recommended approach
Personal or homelab Use the :main tag and pull when you want the latest
Shared or team instance Pin a version (for example :v0.13.5) and get alerts with Diun
Production Pin a version, read the release notes, test in staging first
Testing the next release Run :dev on a second instance with its own volume and port

:main always points to the newest build and can include breaking changes. Image variants include :vX.Y.Z, :vX.Y.Z-cuda for Nvidia GPUs and :vX.Y.Z-ollama, which has Ollama built in.

The -ollama images only update Ollama when you pull a new Open WebUI image. If you want to update Ollama on its own schedule, run it as a separate container or app. Our update Ollama guide covers that.

Back Up Before You Update

Everything important lives in the Docker volume (usually named open-webui): the database with chats, users and settings, uploaded files and knowledge-base documents, and generated content. Releases with database migrations cannot be undone by switching back to an older image, so a backup is your only safety net.

  1. Open a terminal in a folder where you want the backup file.
  2. Run: docker run --rm -v open-webui:/data -v $(pwd):/backup alpine tar czf /backup/openwebui-$(date +%Y%m%d).tar.gz /data
  3. Check that a file such as openwebui-20261127.tar.gz appeared and is not tiny.
  4. Copy it somewhere safe, off the same disk if you can.

On Windows PowerShell, replace $(pwd) with ${PWD} and give the file a fixed name instead of the date command.

If you use an external database such as PostgreSQL, back that up too with its own tools.

Update Open WebUI in Docker

Updating in Docker means pulling a newer image and recreating the container with the same data volume. Removing the container does not delete the volume.

  1. Stop and remove the container: docker rm -f open-webui
  2. Pull the new image: docker pull ghcr.io/open-webui/open-webui:main (or the :cuda, :ollama or pinned tag you use).
  3. Recreate it with the same options as before.
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

For Nvidia GPUs add --gpus all and use the :cuda tag. Pull the same tag you run: if your container uses :cuda or :ollama, pulling :main will not update it.

Not sure which options you used originally? Run docker inspect open-webui before removing the container and note the image, ports, volumes and environment variables.

Update With Docker Compose

  1. Go to the folder that holds your docker-compose.yml.
  2. Pull the new images: docker compose pull
  3. Recreate the containers: docker compose up -d
  4. Optional: remove old images with docker image prune.

A good minimal compose file keeps the data volume and a fixed secret key:

services:
  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    ports:
      - "3000:8080"
    volumes:
      - open-webui:/app/backend/data
    extra_hosts:
      - host.docker.internal:host-gateway
    environment:
      - WEBUI_SECRET_KEY=your-secret-key
    restart: unless-stopped
volumes:
  open-webui:

Update a pip Install

  1. Activate the same Python environment you installed Open WebUI into.
  2. Upgrade: pip install -U open-webui (or uv pip install -U open-webui).
  3. Restart the server: open-webui serve

Your data for a pip install lives in the package’s data folder or the folder set by DATA_DIR. Copy that folder before upgrading.

Check the Update Worked

  1. Check the version in the logs: docker logs open-webui 2>&1 | head -20
  2. Open http://localhost:3000. You should see the sign-in page.
  3. If the interface looks broken or old, hard-refresh with Ctrl+F5 (Cmd+Shift+R on Mac) to clear cached files.
  4. If the logs show migration errors, read the release notes for known issues before going further.

If your models disappeared after the update, Open WebUI usually just lost its connection to Ollama. Our Open WebUI with Ollama setup guide explains the connection settings.

Roll Back to an Older Version

If a release causes problems, run an older tag with the same volume:

docker rm -f open-webui
docker pull ghcr.io/open-webui/open-webui:v0.13.4
docker run -d -p 3000:8080 -v open-webui:/app/backend/data \
  --add-host=host.docker.internal:host-gateway \
  -e WEBUI_SECRET_KEY="your-secret-key" \
  --name open-webui --restart always \
  ghcr.io/open-webui/open-webui:v0.13.4

With Compose, change the image: tag and run docker compose pull and docker compose up -d. With pip, install a specific version such as pip install open-webui==0.13.4.

Important: if the newer version ran a database migration, the old version may not work with the upgraded database. In that case restore the backup you made before updating:

docker stop open-webui
docker run --rm -v open-webui:/data -v $(pwd):/backup \
  alpine sh -c "rm -rf /data/* && tar xzf /backup/openwebui-YYYYMMDD.tar.gz -C /"
docker start open-webui

This deletes everything currently in the volume before restoring, so double-check the file name.

Automatic Updates and Notifications

Tool Updates containers? Best for
Diun No, alerts only (email, Slack, Discord, Telegram…) Production: you decide when to update
What’s Up Docker (WUD) Manual, from a web dashboard Managed setups that want a UI
Watchtower Yes, fully automatic Homelabs and personal use

Watchtower

The original containrrr/watchtower is unmaintained and fails with Docker 29 and newer. The Open WebUI docs recommend the maintained nickfedor/watchtower fork.

# one-time update
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
  nickfedor/watchtower --run-once open-webui

# check every 6 hours
docker run -d --name watchtower --restart unless-stopped \
  -v /var/run/docker.sock:/var/run/docker.sock \
  nickfedor/watchtower --interval 21600 open-webui

Add -e WATCHTOWER_CLEANUP=true to delete old images automatically. Remember that automatic updates skip your chance to back up and read release notes, so pair them with scheduled backups.

Things That Change in Recent Updates

The current docs list several one-time changes that happen on the first start after upgrading to recent versions:

  • Direct Connections replaced by Tether: personal connections and tool servers in user settings are removed; connections added in the Tether app keep URLs and keys on your computer. Admins add shared connections under Settings > Admin.
  • Image settings become image connections: image generation environment variables (OpenAI, Gemini, ComfyUI, AUTOMATIC1111) are converted into connections on first start and then managed in Settings > Images.
  • Arena models become router models: blind-comparison arenas are converted into router models with a Random strategy.
  • Agent chats: the first new message in an agent chat from before the update starts a new agent session.

If you run several replicas, update them all at once. Rolling updates are not supported across a release that changes the database schema.

If you use Open WebUI for document chat, re-test your knowledge bases after big updates; our Open WebUI RAG guide lists the settings to check.

Troubleshooting

Problem Fix
Everyone is signed out after every update Set a fixed WEBUI_SECRET_KEY (create one with openssl rand -hex 32) and keep it in your run command or compose file
Version did not change after updating The volume is mounted at /app/backend instead of /app/backend/data, so it hides the new code. Change the mount to /app/backend/data
Still on the old version after a pull You pulled :main but run :cuda, :ollama or a pinned tag. Pull the tag you actually run
Broken or blank interface Hard-refresh the browser (Ctrl+F5 / Cmd+Shift+R)
Migration errors in logs Check release notes; restore the pre-update backup if needed
Old version will not start after rollback The database was migrated; restore the backup taken before the update
Watchtower fails on Docker 29+ Switch from containrrr/watchtower to nickfedor/watchtower
Models missing after update Re-check the Ollama or API connection under Admin Settings > Connections

FAQ

Will updating Open WebUI delete my chats?

No, as long as you reuse the same volume (-v open-webui:/app/backend/data). Removing the container does not remove the volume. Back up anyway, because migrations cannot be undone.

How often does Open WebUI release updates?

Very often, sometimes several times a week. Check the GitHub releases page or set up Diun for alerts.

Should I use :main or a version tag?

Use :main for a personal setup where you want the latest. Pin a version for shared or production instances so updates only happen when you choose.

How do I update Open WebUI with the bundled Ollama?

Pull the :ollama tag and recreate the container. Ollama inside it only updates when you pull a newer Open WebUI image.

Can Open WebUI update itself automatically?

Not by itself. Use Watchtower for automatic container updates, ideally with scheduled backups.

Why am I logged out after updating?

Without a fixed WEBUI_SECRET_KEY, a new key is generated when the container is recreated, which invalidates all sessions.

How do I update the pip version?

Run pip install -U open-webui in the same environment, then start it again with open-webui serve.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a co-working space with plants holding a tablet with an OPEN WEBUI card, hook update Open WebUI safely