docker内使用nvidia-smi命令提示No devices were found

1.关闭容器

2.运行systemctl stop docker

3.运行systemctl start docker

不要使用systemctl restart docker,没效果