问题遇到的现象和发生背景
拉取一个镜像后
直接docker run就成功
加了nvidia-docker run就失败
问题相关代码,请勿粘贴截图
nvidia-docker run -i -t -v /home/lc/gqy/docker/ai:/home/ai pytorch/pytorch /bin/bash
运行结果及报错内容
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "process_linux.go:432: running prestart hook 1 caused \"error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: initialization error: nvml error: driver/library version mismatch\\n\""": unknown.
ERRO[0000] error waiting for container: context canceled
我的解答思路和尝试过的方法
失败之后我发现容器仍然创建了 ,于是我start,发现start失败了
我想要达到的结果
因为需要用到系统的gpu,所以必须用nvidia