Skip to content

Commit 813cfa3

Browse files
ihor-sokoliukclaude
andcommitted
docs: make Docker HTTP example portable to native Linux
Add --add-host=host.docker.internal:host-gateway so the container can reach a host SearXNG on native Linux Docker, where host.docker.internal does not resolve automatically (unlike Docker Desktop). Addresses Copilot review feedback on PR #165. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent f73f28e commit 813cfa3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,14 @@ Or with Docker (bind to all interfaces so the port is reachable from the host):
238238

239239
```bash
240240
docker run --rm -p 3000:3000 \
241+
--add-host=host.docker.internal:host-gateway \
241242
-e MCP_HTTP_PORT=3000 -e MCP_HTTP_HOST=0.0.0.0 \
242243
-e SEARXNG_URL=http://host.docker.internal:8080 \
243244
isokoliuk/mcp-searxng:latest
244245
```
245246

247+
The `--add-host` mapping lets the container reach a SearXNG instance on the host via `host.docker.internal`; it resolves automatically on Docker Desktop but needs this flag on native Linux. Point `SEARXNG_URL` at your actual instance if it runs elsewhere.
248+
246249
**Connect an HTTP-capable MCP client** to the `/mcp` endpoint by URL:
247250

248251
```json

0 commit comments

Comments
 (0)