"Hindsight inside Docker cannot connect to the Ollama instance on my Windows host machine." #1244
-
|
Title:Unable to connect to local Ollama model from Hindsight container on Windows Docker Body: "After deploying Hindsight in a container, I've been unable to connect to my local model. Operating System: Windows Server Error Log: 4 Starting Hindsight API... WARNING: pg0 data directory exists at /home/hindsight/.pg0 but no PG_VERSION found. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey, that is 99% a docker issue and not hindsight. Check that both containers are on the same docker network and that your IP bindings match your actual network infrastructure. You can bind to 0.0.0.0 then it becomes accessible from any IP, but if the host is publicly accessible that would be a huge security issue. Accessing a container within a docker network is usually easier by container name rather than ip. e.g. if your ollama container is called ollama then ollama:11434 will do the job hth |
Beta Was this translation helpful? Give feedback.
Hey, that is 99% a docker issue and not hindsight. Check that both containers are on the same docker network and that your IP bindings match your actual network infrastructure. You can bind to 0.0.0.0 then it becomes accessible from any IP, but if the host is publicly accessible that would be a huge security issue. Accessing a container within a docker network is usually easier by container name rather than ip. e.g. if your ollama container is called ollama then ollama:11434 will do the job
hth