29 lines
752 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

方案1修改挂载点不覆盖应用目录
bash
docker run -it --rm \
--device /dev/galcore \
--device /dev/dri/card0 \
--device /dev/vpu_service \
--device /dev/rga \
-v /lib/npu:/lib/npu \
-v /usr/bin/:/usr/bin:ro \
-v /usr/lib/:/usr/lib:ro \
-v /usr/share/:/usr/share:ro \
-v /lib/:/lib:ro \
-v /etc/ld.so.cache:/etc/ld.so.cache:ro \
--privileged \
rk1808-infer
方案2使用数据卷或绑定挂载应用目录
bash
docker run -it --rm \
--device /dev/galcore \
--device /dev/dri/card0 \
--device /dev/vpu_service \
--device /dev/rga \
-v /lib/npu:/lib/npu \
-v /usr/:/host_usr:ro \
-v /lib/:/host_lib:ro \
-v /usr/local/rk1808-docker/models/:/usr/local/models:ro \
--privileged \
rk1808-infer