Easy interactions with ollama within VSCode leveraging the ollama docker image.
- Docker
- VSCode
- VSCode DevContainers extension
Clone the repo, open the folder in VSCode and then choose to open in dev container when prompted.

- Required docker images will be downloaded automatically.
- Gemma server is auto started upon dev container running as well.
- Port is automatically mapped to host (11434).
After container is started, open a terminal in the VSCode session and run below (using Gemma:2b as an example):
./gemma2b.sh
All it does is just running ollama run gemma:2b. You can then interact with the model from the terminal.
Alternatively, you can also open the requests.http file in VSCode and test the model interaction via the pre-installed Rest Client VSCode extension.
