環(huán)境
- 操作系統(tǒng):win10
- WSL2 + Ubuntu 22.04
- 顯卡驅動: 546.33
- CUDA: 11.7
報錯起因:
執(zhí)行 docker 運行容器命令:
docker run -it --restart=always --privileged=true -p 7744:7744 --gpus all taihangservice_por:v1.4 bash
報錯:
failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy' nvidia-container-cli: mount error: file creation failed: /var/lib/docker/overlay2/d75f7754236c9fea20bc82048e4450fa4635d1079239ccdfdbc0c7e77d296161/merged/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1: file exists: unknown.?文章來源:http://www.zghlxwxcb.cn/news/detail-817476.html
解決方法
1. 先不使用gpu創(chuàng)建容器
2. 進入容器,刪除相關文件(注意根據報錯刪除文件,不要刪多文章來源地址http://www.zghlxwxcb.cn/news/detail-817476.html
到了這里,關于docker desktop 運行帶 --gpus all 參數容器報:Auto-detected mode as ‘legacy‘ nvidia-container-cli: mount error的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!