Running in Docker, Can not connect to local Ollama #3390

Closed
opened 2026-02-21 17:57:13 -05:00 by yindo · 0 comments
Owner

Originally created by @zblabs on GitHub (May 16, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.6

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Run in docker
Browse to http://localhost/explore/apps
Select Ollama
Enter:
model name: llama3:latest
base URL: http://localhost:11343 (have also tried with IP of PC. And opened firewall).
Completion mode: chat
Model Context size: 4096
Upper bound for max tokens: 4096
Vision Support: no
Press: Save

✔️ Expected Behavior

Configuration would be saved

Actual Behavior

Received error:
Dify-Ollama-Connection-Failure

Originally created by @zblabs on GitHub (May 16, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.6 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Run in docker Browse to http://localhost/explore/apps Select Ollama Enter: model name: llama3:latest base URL: http://localhost:11343 (have also tried with IP of PC. And opened firewall). Completion mode: chat Model Context size: 4096 Upper bound for max tokens: 4096 Vision Support: no Press: Save ### ✔️ Expected Behavior Configuration would be saved ### ❌ Actual Behavior Received error: ![Dify-Ollama-Connection-Failure](https://github.com/langgenius/dify/assets/67868115/5a1f125b-e7a3-4f71-8e59-4d06844ccba1)
yindo added the 🐞 bug label 2026-02-21 17:57:13 -05:00
yindo closed this issue 2026-02-21 17:57:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#3390