> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.stereolabs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.stereolabs.com/_mcp/server.

# How to use ZED X with Docker

In order to use the ZED X, ZED X Mini, and ZED X Nano in a Docker container, a
certain number of options and volumes **are required** when running the container.

To run an interactive container using `docker run`:

```bash
docker run --runtime nvidia -it --privileged -e DISPLAY \
  --network host \
  -v /dev/:/dev/ \
  -v /tmp/:/tmp/ \
  -v /var/nvidia/nvcam/settings/:/var/nvidia/nvcam/settings/ \
  -v /etc/systemd/system/zed_x_daemon.service:/etc/systemd/system/zed_x_daemon.service \
  -v ${HOME}/zed_docker_ai/:/usr/local/zed/resources/ \
  <docker_image> sh
```

> **Note**
>
> Ensure that the L4T (Linux for Tegra) version of your host system **matches the L4T version** of the container you are using.

> **Note**
>
> The ZED [GMSL2](/docs/products/embedded/zed-link-capture-card/gmsl2#what-is-gmsl2) driver must be installed **only on the host machine**, and **not in the Docker container**.

> **Note**
>
> If you cannot open the ZED X camera in Docker, it is possible that the ZED Link driver on the host is not correctly installed. You might need to install the `libqt5core5a` dependency if not already installed.
>
> Use the following command before re-installing the driver:
>
> ```bash
> sudo apt install libqt5core5a
> ```