Docker Open WebUI with OpenAI API
Created on
This article takes note of useful information about using Docker to create a WebUI for OpenAI API.
Installations
- Install docker
- Install Open WebUI with Docker
This takes a few minutes to download the image.
- Run the docker image
docker run -d -p 3000:8080 -e OPENAI_API_KEY={your API key} -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
- Open the WebUI from localhost:3000
Troubleshooting
If you encounter any issues, you can check the logs using the following command:
docker logs open-webui
Check if the port is already in use:
lsof -i :3000