Skip to content

Instantly share code, notes, and snippets.

@peterwwillis
Created February 6, 2026 02:29
Show Gist options
  • Select an option

  • Save peterwwillis/ea3cae1418c3b22b42e86950fd5707ba to your computer and use it in GitHub Desktop.

Select an option

Save peterwwillis/ea3cae1418c3b22b42e86950fd5707ba to your computer and use it in GitHub Desktop.
Use Ollama running on host OS within a VM and Docker-in-Docker

Accessing Ollama running on host OS from inside Docker-in-docker container in VM

If you run Ollama on your host OS, but want to access it from within a protected container:

  1. Install Colima and Docker-in-Docker (link)
  2. Install Ollama on host (link)
  3. Access Ollama from the container with URL: http://host.docker.internal:11434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment