DavebyDay
  • News
  • Categorie
    • Dev
    • Download
    • Entertainment
    • Fix
    • Gaming
    • Hardware
    • Internet
    • News
    • Recensioni
    • Smart Tech
    • Software
    • Stampa 3D
    • Tutorial
    • Web
  • More
    Create Offline Videos with AI

    Create Offline Videos with AI

    How to update Open WebUI in Docker

    How to update Open WebUI in Docker

    Disable Web Search in Start Menu – Windows 10

    Disable Web Search in Start Menu – Windows 10

    Google Sheets find and replace with macro

    Google Sheets find and replace with macro

    Dead Pixel Test for Widescreen 21:9 – 4K

    Dead Pixel Test for Widescreen 21:9 – 4K

    Come esportare i modelli 3D di Fortnite

    Creare un Pattern con un’ immagine in Photoshop

    Installare CentOS 6.9 su una Virtual machine VMware

    Guida Rapida per utilizzo Xiaomi Yi

  • Video
  • Contatti
No Result
View All Result
  • News
  • Categorie
    • Dev
    • Download
    • Entertainment
    • Fix
    • Gaming
    • Hardware
    • Internet
    • News
    • Recensioni
    • Smart Tech
    • Software
    • Stampa 3D
    • Tutorial
    • Web
  • More
    Create Offline Videos with AI

    Create Offline Videos with AI

    How to update Open WebUI in Docker

    How to update Open WebUI in Docker

    Disable Web Search in Start Menu – Windows 10

    Disable Web Search in Start Menu – Windows 10

    Google Sheets find and replace with macro

    Google Sheets find and replace with macro

    Dead Pixel Test for Widescreen 21:9 – 4K

    Dead Pixel Test for Widescreen 21:9 – 4K

    Come esportare i modelli 3D di Fortnite

    Creare un Pattern con un’ immagine in Photoshop

    Installare CentOS 6.9 su una Virtual machine VMware

    Guida Rapida per utilizzo Xiaomi Yi

  • Video
  • Contatti
No Result
View All Result
DavebyDay
No Result
View All Result
Home AI

How to update Open WebUI in Docker

Davebyday by Davebyday
Aprile 7, 2025
in AI, Tutorial
0
How to update Open WebUI in Docker
34
SHARES
481
VIEWS
Share on FacebookShare on Twitter

Open WebUI is a fantastic, self-hosted frontend for various AI models. If you’re running it in Docker (and you probably are!), keeping it up-to-date is crucial for accessing the latest features, bug fixes, and performance improvements. This post will walk you through two simple methods to update your Open WebUI Docker container.

Method 1: Manual Update

This method involves a straightforward sequence of Docker commands. It’s a good option if you prefer more control over the update process.

Create Offline Videos with AI

AI Startup System Prompts Leaked

Absolute Zero – Self-Improvement AI

What is Model Context Protocol

Llama 4: New Era in Open-Source LLM

1. Pull the latest image: This downloads the newest Open WebUI image from the container registry.

docker pull ghcr.io/open-webui/open-webui:main

2. Stop the current container: This gracefully shuts down your running Open WebUI container.

docker stop open-webui

3. Remove the old container: This deletes the old container, freeing up resources.

docker rm open-webui

4. Start the updated container: This launches a new container using the latest image, with your existing data preserved. **Important:** Pay attention to the volume mount (`-v`) to ensure your data is not lost!

docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

Code info:
`-d`: Runs the container in detached mode (in the background).
`-p 3000:8080`: Maps port 3000 on your host machine to port 8080 inside the container (Open WebUI’s default port). Adjust the host port (3000) if needed.
`–add-host=host.docker.internal:host-gateway`: This is often necessary for accessing services running on your host machine from within the container.
`-v open-webui:/app/backend/data`: This mounts a volume named `open-webui` to the `/app/backend/data` directory inside the container. **This is where your Open WebUI data is stored!** Make sure you’ve created this volume (e.g., `docker volume create open-webui`) or that the directory on your host machine exists and has the correct permissions.
`–name open-webui`: Assigns a name to the container for easy management.
`–restart always`: Automatically restarts the container if it crashes or the system reboots.

Method 2: File BAT for Windows

Just copy paste in a txt file and save it as bat file format:

@echo off
echo Pulling latest image...
docker pull ghcr.io/open-webui/open-webui:main
timeout /t 5 /nobreak > nul

echo Stopping container...
docker stop open-webui
timeout /t 5 /nobreak > nul

echo Removing container...
docker rm open-webui
timeout /t 5 /nobreak > nul

echo Starting updated container...
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

echo Update complete!Visit https://Davebyday.com for more info!
pause

Method 3: Automated Updates Using Watchtower

Want to keep your Open WebUI container always up-to-date with minimal effort?
Watchtower is a fantastic tool that automatically monitors your running containers and updates them when new images are available.

To set it up:

docker run -d --name watchtower --restart always -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower open-webui

`-d`: Runs Watchtower in detached mode.
`–name watchtower`: Assigns a name to the Watchtower container.
`–restart always`: Restarts Watchtower automatically.
`-v /var/run/docker.sock:/var/run/docker.sock`: Mounts the Docker socket, allowing Watchtower to communicate with the Docker daemon.
`open-webui`: Specifies the container to monitor and update.

By default, Watchtower checks for updates every 24 hours. You can customize this interval using environment variables (see the Watchtower documentation for details: https://containrrr.dev/watchtower

Updating Open WebUI in Docker is a breeze with either of these methods. The manual approach gives you full control, while Watchtower provides a hands-off, automated solution. Choose the method that best suits your needs and enjoy the latest features and improvements in Open WebUI!

Post Views: 951
Tags: AIdockeropenwebuiwebui
Share14Tweet9SendShareShare
Previous Post

Llama 4: New Era in Open-Source LLM

Next Post

What is Model Context Protocol

Related Posts

Create Offline Videos with AI
AI

Create Offline Videos with AI

by Davebyday
Maggio 21, 2025
6
AI Startup System Prompts Leaked
AI

AI Startup System Prompts Leaked

by Davebyday
Maggio 19, 2025
22
Absolute Zero – Self-Improvement AI
AI

Absolute Zero – Self-Improvement AI

by Davebyday
Maggio 19, 2025
14
What is Model Context Protocol
AI

What is Model Context Protocol

by Davebyday
Maggio 19, 2025
13
Llama 4: New Era in Open-Source LLM
AI

Llama 4: New Era in Open-Source LLM

by Davebyday
Maggio 21, 2025
8
Next Post
What is Model Context Protocol

What is Model Context Protocol

Absolute Zero – Self-Improvement AI

Absolute Zero - Self-Improvement AI

Recommended Stories

Create Offline Videos with AI

Create Offline Videos with AI

Maggio 21, 2025
6
AI Startup System Prompts Leaked

AI Startup System Prompts Leaked

Maggio 19, 2025
22
Run .BAT Files in Minimized Mode

Run .BAT Files in Minimized Mode

Maggio 10, 2025
36
Absolute Zero – Self-Improvement AI

Absolute Zero – Self-Improvement AI

Maggio 19, 2025
14
What is Model Context Protocol

What is Model Context Protocol

Maggio 19, 2025
13
How to update Open WebUI in Docker

How to update Open WebUI in Docker

Aprile 7, 2025
481
  • Configurare Raspberry Pi come Access Point Bridge

    223 shares
    Share 89 Tweet 56
  • Trovare file con percorso più lungo di 255 caratteri

    202 shares
    Share 81 Tweet 51
  • Raspberry Pi: come avviare programmi allo start up

    178 shares
    Share 71 Tweet 45
  • Mega.co.nz non si apre

    174 shares
    Share 70 Tweet 44
  • Come abilitare il login per l’utente root nella GUI Debian

    151 shares
    Share 60 Tweet 38
  • Home Assistance Compatible Device
  • My Setup
  • News
  • Web Tech & DIY

© 2020

No Result
View All Result
  • Home Assistance Compatible Device
  • My Setup
  • News
  • Web Tech & DIY

© 2020