fix(docker): enable container-to-host connectivity for localhost services (e.g., Ollama)#491
Merged
mengzhuo merged 1 commit intosipeed:mainfrom Feb 21, 2026
Merged
Conversation
nikolasdehor
approved these changes
Feb 19, 2026
nikolasdehor
left a comment
There was a problem hiding this comment.
Sensible approach — commented-out extra_hosts for opt-in host networking is the standard Docker pattern for container-to-host connectivity. Helpful for Ollama/local-provider users, correctly commented out by default. LGTM.
mengzhuo
approved these changes
Feb 21, 2026
SebastianBoehler
pushed a commit
to SebastianBoehler/picoclaw
that referenced
this pull request
Feb 22, 2026
fix(docker): enable container-to-host connectivity for localhost services (e.g., Ollama)
hyperwd
pushed a commit
to hyperwd/picoclaw
that referenced
this pull request
Mar 5, 2026
fix(docker): enable container-to-host connectivity for localhost services (e.g., Ollama)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Fixes Docker containers unable to access Ollama when running on the host machine.
🗣️ Type of Change
🤖 AI Code Generation
🔗 Related Issue
#466, #75
📚 Technical Context (Skip for Docs)
🧪 Test Environment
📸 Evidence (Optional)
If Ollama is already running, it must be restarted with the correct host binding. I used:
On Fedora, Ollama must listen on 0.0.0.0 to be accessible from Docker. This is typically unnecessary on macOS or Windows.
I used whit config:
This setting must point to "api_base": "http://host.docker.internal:11434/v1".
An api_key must also be provided. The value itself is not important, but it cannot be empty because the client validates its presence.
☑️ Checklist
I don’t believe this needs a docs update yet, cloud setups work as expected. This is specific to local Ollama in Docker and seems like an isolated case. It may be worth documenting once an official Ollama provider is added.