一、問題現象
開啟應用突然打不開了,一個docker應用依賴顯示卡
報錯:failed to create shim task: OCI runtime create failed:xxxxxx
二、定位處理
1、檢視顯示情況
$ nvidia-smi Unable to determine the device handle for GPU 0000:02:00.0: Unknown Error
2、檢視是不是有顯示卡
lspci | grep -i nvidia
$ lspci| grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 5GB] (rev ff)
01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev ff)
顯示卡是在的,但是rev ff
就是顯示卡關閉了。
三、處理方法
使用了sudo nvidia-smi -pm 1
然後重啟電腦
再次檢視
$ lspci| grep -i nvidia 01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 5GB] (rev a1) 01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)
顯示卡已經是開啟狀態
參考連結:
https://blog.csdn.net/qq_54478153/article/details/128202846
https://blog.csdn.net/weixin_42792088/article/details/134176781