问题:当docker服务使用显卡时,出现torch包与cuda版本不匹配问题
解决:以cuda作为基础镜像制作Dockerfile
将该镜像文件放到任何有显卡的服务器上使用,不用考虑CUDA Version的问题!
若以上工作顺利完成后,用该镜像启动docker服务依旧出现问题:
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #1: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: requirement error: unsatisfied condition: cuda>=12.0, please update your driver to a newer version, or use an earlier cuda container: unknown.
ERRO[0000] error waiting for container:
NVIDIA容器工具包无法满足CUDA版本的要求。
nvidia-smi 检查
驱动版本太低的问题…