OpenAI API Key is deleted each time the Docker Container is restarted #953

Closed
opened 2025-11-11 14:34:19 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @KaiserRuben on GitHub (May 17, 2024).

Bug Report

Description

Bug Summary:
Given you entered an OpenAI API Key, once you restart the Docker Container, its gone and you'd need to configure it again.

Steps to Reproduce:

  1. Start Open-WebUI using the Docker Container
  2. Add an OpenAI API Key in the settings under "Connections"
  3. Restart the Docker Container

Expected Behavior:
I would expect the API Key to be persistent, so still be there even after the Docker container is restarted.

Actual Behavior:
Well, it is not persistent. Its gone when you restart the Container (or your PC for that matter)

Environment

  • Open WebUI Version: v0.1.124

  • Ollama (if applicable): 0.1.37 (but doesn't matter for this)

  • Operating System: MacOS 14.5 (23F79)

  • Browser (if applicable): Arc Version 1.43.0 (50018); (Chromium Engine Version 125.0.6422.60)

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.

Installation Method

Using Open-WebUIs official website:

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

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @KaiserRuben on GitHub (May 17, 2024). # Bug Report ## Description **Bug Summary:** Given you entered an OpenAI API Key, once you restart the Docker Container, its gone and you'd need to configure it again. **Steps to Reproduce:** 1. Start Open-WebUI using the Docker Container 2. Add an OpenAI API Key in the settings under "Connections" 3. Restart the Docker Container **Expected Behavior:** I would expect the API Key to be persistent, so still be there even after the Docker container is restarted. **Actual Behavior:** Well, it is not persistent. Its gone when you restart the Container (or your PC for that matter) ## Environment - **Open WebUI Version:** v0.1.124 - **Ollama (if applicable):** 0.1.37 (but doesn't matter for this) - **Operating System:** MacOS 14.5 (23F79) - **Browser (if applicable):** Arc Version 1.43.0 (50018); (Chromium Engine Version 125.0.6422.60) ## Reproduction Details **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. ## Installation Method Using [Open-WebUIs official website](https://docs.openwebui.com/getting-started/): ```sh 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 ``` ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#953