瀏覽代碼

doc: run ollama via docker

Timothy J. Baek 1 年之前
父節點
當前提交
e3d77aa490
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      README.md

+ 6 - 0
README.md

@@ -46,6 +46,12 @@ If you want to access the Ollama web interface over LAN, for example, from your
 OLLAMA_HOST=0.0.0.0 OLLAMA_ORIGINS=* ollama serve
 OLLAMA_HOST=0.0.0.0 OLLAMA_ORIGINS=* ollama serve
 ```
 ```
 
 
+If your running Ollama via Docker:
+
+```bash
+docker run -d -v ollama:/root/.ollama -p 11434:11434 -e OLLAMA_ORIGINS="*" --name ollama ollama/ollama
+```
+
 ### Using Docker 🐳
 ### Using Docker 🐳
 
 
 If Ollama is hosted on your local machine, run the following command:
 If Ollama is hosted on your local machine, run the following command: