GenAI-Stack - Connection Error with host.docker.internal port 11434

Unless someone comes here who uses the same software on the same platform trying to connect the same way, you wil have to share more details.

  • How you are running the aplication which tries to connect and
  • where the service is running to which it needs to connect to.
  • Is the exception coming from the client side or server side?

For me, it looks like a Python error. Am I right?

Some additional questions:

  • Can you ping host.docker.internal from the container?
  • On what IP is the service listening?

Note that if you want to use host.docker.internal the service on the host (assuming it runs on the Windows host) must listen on localhost (127.0.0.1)

Sharing your compose file or command that you used to run the container can also help to understand the issue. When you share a code, terminal output or logs, please use code blocks. More information in the following guide:How to format your forum posts