This guide covers setting up DeepSeek R1 Local on Windows, both with and without GPU support.
Note: Commands may need to be run with sudo
if you are not in the docker group.
-
Install Docker Desktop for Windows:
- Download from Docker's official website
- Run the installer and follow the prompts
- You do not need to enable WSL2 integration for CPU-only usage
-
Start the containers:
docker compose up -d
- NVIDIA GPU with updated drivers
- Windows 10/11 with WSL2 enabled
- Ubuntu installed in WSL2
- Enable WSL2:
wsl --install
- Install Make utility:
sudo apt-get install make
- Install Docker and Docker Compose in WSL2:
make install-docker
- Install NVIDIA Container Toolkit in WSL2:
make setup-gpu
If successful, you should see something like the following, if not, see [Troubleshooting](#troubleshooting):

- Start the containers with GPU support:
docker compose -f docker-compose.yml -f docker-compose.gpu.yml -f docker-compose.windows.yml up -d
- If containers fail to start:
- Check Docker Desktop is running
- Ensure you have enough memory allocated in Docker Desktop settings
- Try restarting Docker Desktop
-
If GPU is not detected:
- Ensure you have the latest NVIDIA drivers installed in Windows
- Check if WSL2 can see the GPU:
nvidia-smi
- If nvidia-smi fails, try updating WSL2:
wsl --update
-
If Docker can't access the GPU:
- Check if the Docker daemon is running:
sudo systemctl status docker
- Verify NVIDIA Container Toolkit installation:
nvidia-ctk --version
- Restart the Docker daemon:
sudo systemctl restart docker
- Check if the Docker daemon is running:
- WSL2 generally provides better performance than native Windows, even for CPU-only workloads
- The first startup will be slower due to model download (1.1GB for default model)
- Models are stored in the
ollama-models
Docker volume and persist between restarts