If you prefer to set up Docker manually, follow these steps for Open WebUI.
Start by pulling the latest Open WebUI Docker image from the GitHub Container Registry.
docker pull ghcr.io/open-webui/open-webui:main
Run the container with default settings. This command includes a volume mapping to ensure persistent data storage.
docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main
-v open-webui:/app/backend/data): Ensures persistent storage of your data. This prevents data loss between container restarts.-p 3000:8080): Exposes the WebUI on port 3000 of your local machine.For Nvidia GPU support, add --gpus all to the docker run command:
docker run -d -p 3000:8080 --gpus all -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:cuda
:::info Important Note on User Roles and Privacy:
:::
To bypass the login page for a single-user setup, set the WEBUI_AUTH environment variable to False:
docker run -d -p 3000:8080 -e WEBUI_AUTH=False -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main
:::warning You cannot switch between single-user mode and multi-account mode after this change. :::
For Docker installation, consider the following options:
-v open-webui:/app/backend/data option to ensure all application data remains available across sessions.-p flag to map internal container ports to your system.For example, if you're installing Open WebUI with data persistence and local-only port exposure, the command would be:
docker run -d -p 127.0.0.1:3000:8080 -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
To connect Open WebUI to an Ollama server located on another host, add the OLLAMA_BASE_URL environment variable:
docker run -d -p 3000:8080 -e OLLAMA_BASE_URL=https://example.com -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
For running Open WebUI with Nvidia GPU support, use:
docker run -d -p 3000:8080 --gpus all -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda
After the container is running, access Open WebUI at:
For detailed help on each Docker flag, see Docker's documentation.