feat: Add host.docker.internal gateway to enable Ollama server access from container

This commit is contained in:
Paul Gauthier (aider) 2024-11-22 10:07:47 -08:00
parent 711102b438
commit 6a0a97cb41

View file

@ -2,6 +2,7 @@
docker run \
-it --rm \
--add-host=host.docker.internal:host-gateway \
-v `pwd`:/aider \
-v `pwd`/tmp.benchmarks/.:/benchmarks \
-e OPENAI_API_KEY=$OPENAI_API_KEY \