Docker镜像实例化报错requirement error: invalid expression

错误信息粘贴:

Error response from daemon: Cannot restart container d4acbc91c7ab: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"process_linux.go:385: running prestart hook 1 caused \\\"error running hook: exit status 1, stdout: , stderr: exec command: [/usr/bin/nvidia-container-cli --load-kmods configure --ldconfig=@/sbin/ldconfig.real --device=all --compute --utility --require=cuda>=10.2 brand=tesla,driver>=384,driver<385 brand=tesla,driver>=396,driver<397 brand=tesla,driver>=410,driver<411 brand=tesla,driver>=418,driver<419 --pid=32001 /home/docker/165536.165536/overlay2/29e5c3c6d1ad0fe8472033dcb6964a3f8c03bad50167ee41c3c49c7dff367b7b/merged]\\\\nnvidia-container-cli: requirement error: invalid expression\\\\n\\\"\"": unknown

在docker hub上直接拉取官方镜像,镜像成功拉取到本地:

镜像实例化时报错:

错误原因:

 显卡驱动版本过低(version=396),与cuda10.0版本不适配,升级显卡driver到符合版本要求后,错误解决。

cuda10.0与显卡driver对应表:

Docker镜像实例化报错requirement error: invalid expression_第1张图片

你可能感兴趣的:(Linux,docker)