DeepStream On WSL
Windows Subsystem for Linux (WSL) is a feature of Windows that allows you to run a Linux environment on your Windows machine, without the need for a separate virtual machine or dual booting. WSL 2 is the latest version of it. This page describes the steps to run a Deepstream docker container inside WSL2.
Pre-Requisites:
1. Windows 11 system with NVIDIA GPU:
NOTE: Tesla/Datacenter GPUs are not supported for WSL. Only GeForce and Quadro GPUs in WDDM mode are supported. Please check the link for more info: https://docs.nvidia.com/cuda/wsl-user-guide/index.html#wsl-2-support-constraints
2. NVIDIA driver (windows version) compatible for your GPU:
You can download the compatible driver based on your windows OS and GPU type from here: https://www.nvidia.com/Download/index.aspx
While installing the driver, choose Advanced->Perform Clean Installation on the GUI.
Currently validated Driver Version and GPU info: GameReady Driver version 595.79 with GeForce RTX-3050
NOTE: This is the only driver you need to install on Windows. Do not install any Linux display driver inside WSL.
3. WSL (Windows Store Version):
Download and install the latest stable version of WSL2 from https://github.com/microsoft/WSL/releases. Currently validated WSL Version: wsl.2.7.3.0.x64
NOTE: In some build versions of Windows, ‘wsl –install’ command will install the WSL which comes as a part of windows image, which has limited functionality. DO NOT install that.
Install Ubuntu OS for WSL :
Open terminal and install Ubuntu 24:
Open windows terminal with admin privilege. (Right click and run as administrator) Check what all OS images are available for wsl to install.
Install Ubuntu version required for Deepstream 9.2
The above step may first install dependencies for running WSL, prior to install Ubuntu and can ask for restart of Windows machine. In that case, restart the machine, open windows terminal with admin privilege and check if Ubuntu is installed properly using below command.
If you can’t find an installed Ubuntu version, again install it using ‘wsl —install Ubuntu-24.04’ command. Set the username and password for Ubuntu when prompted.
Install Docker Engine And Dependencies Inside Ubuntu:
Start Ubuntu Inside WSL:
Open windows terminal with admin privilege (Right click and run as administrator).
Start Ubuntu using WSL. (This step is required only if you are not already logged into Ubuntu)
Verify Driver Installation from within WSL environment:
NOTE: If ‘nvidia-smi’ is not working as expected, then there is some issue with the driver installation in windows and we can’t go further without fixing this.
Install Docker Engine and Dependencies:
Verify docker installation:
This should print a “Hello from Docker!”
NOTE: If you are not able to run the above command because of docker service not running, start the docker service before that.
Enabling the Docker Repository and Installing the NVIDIA Container Toolkit:
Run Deepstream Container:
Pull the required deepstream docker container:
Start the docker container:
NOTE: The ‘-v’ bind-mount destinations (‘/usr/lib/x86_64-linux-gnu/’) are for an x86_64 WSL2 host.
Verify deepstream functionality:
Expected Output: It should print the deepstream version currently installed on docker.
Expected Output: The filedump.mp4 should be created in the current directory. Playback of the filedump.mp4 should happen fine using any compatible media player. Sample screenshot attached below:

Expected Output: deepstream-app should run fine. out.mp4 will be generated in the current directory. Playback of the out.mp4 should happen fine using any compatible media player. Sample screenshot attached below:

For ubuntu 24.04 based docker, there is a known issue with rendering using ‘nveglglessink’ or similar plugin. So please use filesink to dump the output to a file and verify it using any compatible media player.