- Docker
- .NET SDK
- Ollama
# Pull Ollama image
docker pull ollama/ollama
# Run Ollama container
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
# Pull Llama3.2 model
docker exec -it ollama ollama pull llama3.2
# Navigate to project directory
dotnet run
- Ollama runs locally on port 11434
- Persistent model storage is mapped to the
ollama
volume - Llama3.2 model is used in this example
- Ensure Docker is running
- Verify Ollama container is active with
docker ps
- Check network connectivity to localhost:11434