docker build -t oc9-open-webui:0.8.10 .
docker run -d -p 3000:8080 \
-v open-webui:/app/backend/data \
--name open-webui \
--restart always \
oc9-open-webui:0.8.10
docker run -d -p 3000:8080 \
--add-host=host.docker.internal:host-gateway \
-v open-webui:/app/backend/data \
--name open-webui \
--restart always \
oc9-open-webui:0.8.10
docker run -d -p 3000:8080 \
-e OPENAI_API_KEY=your_api_key \
-v open-webui:/app/backend/data \
--name open-webui \
--restart always \
oc9-open-webui:0.8.10
docker run -d -p 3000:8080 \
-e OLLAMA_BASE_URL=https://your-ollama-server:11434 \
-v open-webui:/app/backend/data \
--name open-webui \
--restart always \
oc9-open-webui:0.8.10
启动后访问 http://localhost:3000 即可使用。
bash test.sh oc9-open-webui:0.8.10
测试脚本会验证以下内容:
Content type
Image
Digest
sha256:762055c8a…
Size
3.7 GB
Last updated
4 months ago
docker pull ocpub/oc9-open-webui:0.8.10