[PR #8072] Support Unix sockets for OLLAMA_HOST #38484

Open
opened 2026-04-22 23:08:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8072
Author: @doringeman
Created: 12/12/2024
Status: 🔄 Open

Base: mainHead: support-unix-sockets


📝 Commits (1)

  • f4d8c03 Support Unix sockets for OLLAMA_HOST

📊 Changes

4 files changed (+35 additions, -12 deletions)

View changed files

📝 api/client.go (+17 -2)
📝 cmd/cmd.go (+6 -1)
📝 envconfig/config.go (+11 -9)
📝 envconfig/config_test.go (+1 -0)

📄 Description

Add support for Unix sockets for OLLAMA_HOST.

make -j8 && OLLAMA_HOST=unix:///tmp/ollama.sock ./ollama serve
OLLAMA_HOST=unix:///tmp/ollama.sock ./ollama list
curl --unix-socket /tmp/ollama.sock localhost/api/tags

Implements https://github.com/ollama/ollama/issues/739.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/8072 **Author:** [@doringeman](https://github.com/doringeman) **Created:** 12/12/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `support-unix-sockets` --- ### 📝 Commits (1) - [`f4d8c03`](https://github.com/ollama/ollama/commit/f4d8c031a2917012f0aa9dbc953947382f886b13) Support Unix sockets for OLLAMA_HOST ### 📊 Changes **4 files changed** (+35 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+17 -2) 📝 `cmd/cmd.go` (+6 -1) 📝 `envconfig/config.go` (+11 -9) 📝 `envconfig/config_test.go` (+1 -0) </details> ### 📄 Description Add support for Unix sockets for OLLAMA_HOST. ``` make -j8 && OLLAMA_HOST=unix:///tmp/ollama.sock ./ollama serve OLLAMA_HOST=unix:///tmp/ollama.sock ./ollama list curl --unix-socket /tmp/ollama.sock localhost/api/tags ``` Implements https://github.com/ollama/ollama/issues/739. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-22 23:08:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#38484