How to Install ZED SDK with Docker on Linux
Setting Up Docker
Install Docker on your host machine.
If Docker is correctly installed, you should get a message like this:
To run docker commands without sudo, create a Unix group called docker and add your user to it. Note that the docker group grants privileges equivalent to the root user. For more information, see the Docker post-installation guide.
NVIDIA® Docker
On NVIDIA® Jetson™ boards, skip the step below and go directly to the Docker install guide for NVIDIA® Jetson™.
Install the NVIDIA Container Toolkit using the commands below. It lets you build and run GPU-accelerated Docker containers.
Make sure you have installed the NVIDIA® driver for your graphics card before installing nvidia-container-toolkit.
For the most up-to-date instructions, refer to the official NVIDIA Container Toolkit installation guide.
Download a ZED SDK Docker Image
To build and run an application with the ZED SDK, you first need to pull a ZED SDK Docker image. The official ZED SDK Docker images are hosted in the StereoLabs DockerHub repository. Releases are tagged by ZED SDK, CUDA, and Ubuntu version, with optional support for OpenGL.
The tag format for desktop images is stereolabs/zed:<sdk>-<variant>-cuda<cuda>-ubuntu<ubuntu>, where <variant> is one of:
runtime: the ZED SDK runtime libraries, for production images.devel: the runtime plus the development headers and tools, to build your own applications.gl-devel: thedevelimage with OpenGL support, required to run graphical tools such as ZED Explorer.
For example, the following commands download a few ZED SDK 5.4 images to your machine:
Browse the available tags to find the exact combination of ZED SDK, CUDA, and Ubuntu version that fits your needs. ZED SDK 5.4 desktop images are available for CUDA 12.8 and CUDA 13.0 on Ubuntu 22.04 and 24.04.
Start a Docker Container
To start a container from a ZED SDK image, use the following command:
The --gpus all flag exposes all available GPUs to the container, and --privileged grants the container access to the camera connected over USB.
For example:
Congratulations, the ZED SDK is now available inside your container!
Test the Docker Container with ZED SDK Capabilities
To verify the installation, we are going to run the ZED Explorer tool. By default, a Docker container can only run command-line applications. To open a display window, we need a container with OpenGL support (a gl-devel image).
--gpus allexposes all available GPUs to the container.-e NVIDIA_DRIVER_CAPABILITIES=allenables the graphics capabilities required by OpenGL.-v /tmp/.X11-unix:/tmp/.X11-unixlets the container access the display.-e DISPLAYmakes yourDISPLAYenvironment variable available inside the container.
You can now run any OpenGL application in the container. Let’s launch ZED Explorer:
You should now see the ZED Explorer GUI running on your display from within a Docker container!
Run a Sample Application
In this example, we will build and run the Depth Sensing sample available in the ZED SDK samples folder.
Once you are comfortable running the ZED SDK in Docker, head to Creating a Docker Image for your ZED Application to package your own application.

