
How to Completely Uninstall Ableton Live 12 on macOS (Cleanup Script)
November 16, 2026How to Upgrade Open WebUI on Ubuntu via Terminal (Docker Compose)
Last verified for accuracy: November 24th, 2026
Seeing the “A new version is now available” banner at the top of Open WebUI? If you’re hosting Open WebUI on an Ubuntu server with Docker Compose, upgrading takes less than two minutes and keeps all your chats, models, and settings intact. In this guide, I’ll walk you through identifying how your instance is running, locating its exact folder, pulling the latest image, and cleaning up old files.
🎯 What You’ll Get
- 🔍 Instant setup detection – Confirm your container name and exact Docker Compose directory in seconds
- 🛡️ Zero data loss – Preserves your chat history, user accounts, and model configurations
- ⚡ Latest features & fixes – Updates Open WebUI cleanly to the newest release
- 🧹 Disk space cleanup – Removes leftover, unused Docker images after the upgrade
📋 Prerequisites
- An Ubuntu server running Open WebUI via Docker Compose
- SSH or terminal access with
rootorsudoprivileges - 2–3 minutes of your time
Step 1: Check How Open WebUI Is Running & Find Its Folder
First, confirm that Open WebUI is running inside Docker and grab its exact container name:
You should see an output line showing your container name on the far right (usually open-webui) and its image (such as ghcr.io/open-webui/open-webui:main).
Next, find the exact directory where your docker-compose.yml file lives (replace open-webui if your container has a different name):
This will print the folder path—for example, /opt/open-webui. Note this path for the next step.
Step 2: Navigate to Your Directory & Pull the Latest Image
Move into the directory returned in Step 1 (adjust the path if yours is different):
Download the latest Open WebUI image from the registry:
Wait for all image layers to finish downloading until the terminal reports Pulled for open-webui.
Step 3: Recreate & Restart the Container
Apply the update by recreating the container in detached mode. Docker Compose will automatically swap in the new image while keeping your existing data volumes attached:
You should see the terminal confirm Container open-webui Recreated and Started.
Step 4: Verify Health & Clean Up Old Images
Give the container about 30 seconds to boot, then verify that it is running and healthy:
Confirm the status column shows Up ... (healthy), then hard-refresh Open WebUI in your browser (Ctrl + Shift + R or Cmd + Shift + R). The update banner should now be gone.
Finally, reclaim disk space by removing the old, unused Docker image:
🔧 Troubleshooting
“Permission Denied” When Running Docker Commands?
If you aren’t logged in as root, prepend sudo to each Docker command (e.g., sudo docker compose pull), or add your user to the Docker group with sudo usermod -aG docker $USER and log back in.
Update Banner Still Showing After Upgrading?
Clear your browser cache: Open WebUI caches frontend assets aggressively. Perform a hard refresh (Ctrl + Shift + R) or open it in an incognito window to verify the new version under Settings → About.
Container Stuck on “Restarting” or “Unhealthy”?
Check the live container logs to see what’s holding up the boot process:
🚀 What’s Next?
Your Open WebUI instance is now running the latest version with zero leftover image bloat.
Now that you’re up to date, consider:
- Checking the changelog – Open Settings → About in Open WebUI to explore the new features in this release
- Backing up your Compose folder – Keep a copy of your
docker-compose.ymland environment variables before major upgrades - Automating future updates – Tools like Watchtower can handle these pulls and restarts automatically on a schedule
💡 Pro Tips
- One-liner for future updates – Once you know your folder path, you can run
cd /opt/open-webui && docker compose pull && docker compose up -d && docker image prune -fin a single command - Pinning a specific version – If you prefer stability over bleeding-edge updates, change the
:maintag in yourdocker-compose.ymlto a specific version tag - Don’t run
docker compose down -v– The-vflag deletes your Docker volumes and will wipe your chat history and settings
Keeping Open WebUI updated takes just a few terminal commands and ensures you always have the latest UI improvements and model support. Happy self-hosting! 🤖
Found this helpful? Bookmark this guide for your next Open WebUI release and let us know in the comments if you ran into any snags!
⭐ Ready for a reliable, high-performance VPS at an unbeatable price? We host our own Kali labs on Hostinger: 4 vCPU, NVMe storage, 16 GB RAM and 16 TB bandwidth, backed by 24/7 support and a 30-day money-back guarantee. You’ll save up to 20% when you lock in a 24-month plan. Grab a Hostinger VPS using this referral link and support our content.


