使用nvidia-smi提示(此時X-window也無法正常啟動,隻能顯示輸密碼界面):
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
用以下指令自動重裝驅動:
$ sudo ubuntu-drivers autoinstall
此時可正常使用nvidia-smi,啟動gpu docker時又報錯。
用以下指令檢視驅動情況:
$ nvidia-container-cli -k -d /dev/tty info
也報錯。分析發現系統自動安裝的driver是430版本(之前好像安裝過440或450,重新開機後不能正常使用)。