[docs] add security notes to NPU Docker overviews (#10883)

This commit is contained in:
xvxuopop
2026-10-10 15:29:22 +08:00
committed by GitHub
parent ce9dc9e072
commit 1fded918ac
3 changed files with 21 additions and 5 deletions

View File

@@ -184,6 +184,16 @@ docker compose --profile 950-openeuler up -d
- 旧式 NPU tag 已由 `latest-<910b|a3|950>-<ubuntu|openeuler>` 格式取代。
- 正式部署前,请验证具体驱动、固件、CANN 和 SoC 组合的兼容性。
## 安全风险
在运行容器时,需要注意以下安全风险:
- 使用 `root` 用户运行:容器默认以 `root` 用户身份运行,可能带来安全隐患。建议在生产环境中创建非特权用户来运行应用程序。
- 缺少 CPU 和内存资源限制:未设置资源限制可能导致容器消耗过多系统资源,影响宿主机性能。建议使用 `--cpus` 和 `--memory` 参数限制资源使用。
- 设备使用 `rwm` 权限:为 NPU 设备分配了读写和 `mknod` 权限,虽然功能运行需要,但在安全敏感环境中应谨慎评估权限范围。
## 许可证与免责声明
LlamaFactory 基于 [Apache License 2.0](../../LICENSE) 发布。