> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Docker

您可以通过 [Container Device Interface（CDI）](https://docs.docker.com/build/building/cdi/)文件，从 Dragonwing 开发板上的 Docker 容器内部访问 NPU。CDI 文件会将 NPU 设备及所有必需的库*转发*到您的容器中；因此您无需在容器内安装任何驱动程序。

## 在开发板上安装 Docker

首先，在开发板上安装 Docker。在开发板上打开终端，然后：

```
# Install Docker
sudo apt update
sudo apt install -y docker.io

# Add your current user to the 'docker' group, so you can run Docker commands without needing sudo
sudo usermod -aG docker $USER
newgrp docker

# Verify that the installation works
docker run hello-world
# Hello from Docker!
# This message shows that your installation appears to be working correctly.
```

## 安装 CDI 并运行您的第一个应用程序

安装说明和端到端示例请参见 [qc-ai-test-docs-examples/docker/](https://github.com/edgeimpulse/qc-ai-test-docs-examples/tree/master/docker)。在开发板上打开终端，然后：

1. 克隆仓库：

   ```
   git clone https://github.com/edgeimpulse/qc-ai-test-docs-examples
   cd qc-ai-test-docs-examples/docker
   ```

2. 按照 README.md 中的说明操作。

## 提示与技巧

### 基础容器

为获得最佳效果，请使用与主机操作系统相同的基础容器（`ubuntu:24.04`）。
