docker启动容器报错

创建容器的时候使用的是nvidia-docker;

docker重启服务突然报错:

Error response from daemon: Cannot restart container 容器名: OCI runtime create failed: nvidia-container-runtime did not terminate sucessfully: time="2022-10-28T10:42:49+08:00" level=error msg="could not apply required modification to OCI specification: error modifying OCI spec: stat /usr/bin/nvidia-container-runtime-hook: no such file or directory"
: unknown


img

昨天还用的好好的,今天突然就有这个报错;求各位看看问题;

先关闭这个容器

提示缺失那个文件,可以定位看看

Linux版本和Docker版本不兼容的问题,可以换个版本试试