From cfbd4ca185edd254efd94d5f96e47bc20a8117a5 Mon Sep 17 00:00:00 2001 From: Tomoya Fujita Date: Tue, 24 Sep 2024 12:27:38 -0700 Subject: [PATCH] add --net=host option to docker command for Ollama use case. (#46) Signed-off-by: Tomoya Fujita --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1f032a7..29129f0 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,11 @@ https://github.com/fujitatomoya/ros2ai/assets/43395114/78a0799b-40e3-4dc8-99cb-4 see available images for [tomoyafujita/ros2ai@dockerhub](https://hub.docker.com/repository/docker/tomoyafujita/ros2ai/tags?page=1&ordering=last_updated) ```bash -docker run -it --rm -e OPENAI_API_KEY=$OPENAI_API_KEY tomoyafujita/ros2ai:humble +docker run -it --rm --net=host -e OPENAI_API_KEY=$OPENAI_API_KEY tomoyafujita/ros2ai:humble ``` > [!NOTE] -> `OPENAI_API_KEY` environmental variable is not required if using Ollama. +> `OPENAI_API_KEY` environmental variable is not required if using Ollama. And it is expecting that Ollama runs on the host system mostly, so that container is bound to the host network interface. https://github.com/fujitatomoya/ros2ai/assets/43395114/2af4fd44-2ccf-472c-9153-c3c19987dc96