1.先卸载原来驱动
https://www.jianshu.com/p/e52b847970aa
驱动下载:https://blog.csdn.net/weixin_43738628/article/details/105516038
sudo apt-get purge nvidia*sh NVIDIA-Linux-x86_64-430.26.run
2.重装dockerhttps://zhuanlan.zhihu.com/p/305952676
2.https://github.com/NVIDIA/nvidia-docker/issues/1017
docker: Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/moby/73930408dd4c6c7af5d7fcd3bb0edcb4b2eab87320223530f6603ec288df5964/log.json: no such file or directory): exec: "nvidia-container-runtime": executable file not found in $PATH: : unknown.ERRO[0001] error waiting for container: context canceled#解决办法sudo apt install nvidia-container-runtime# sudo pkill -SIGHUP dockerd(base) root@iZbp1geg9ce1hqsjbviqpqZ:~# cat /etc/docker/daemon.json{"default-runtime": "nvidia","runtimes": {"nvidia": {"path": "nvidia-container-runtime","runtimeArgs": []}},"registry-mirrors": ["https://m3dz4myl.mirror.aliyuncs.com"]}# https://www.cnblogs.com/luckforefforts/p/13642682.html
docker pull nvcr.io/nvidia/tensorrt:20.11-py3docker build -f DockerfileTRT -t trt721:0.1 .docker run -it -v /root/xiangyu/ehome_prj/ehome_bca_pipeline:/root/ehome_bca_pipeline --name trt trt721:0.1
安装tensorrt python
https://blog.csdn.net/qq_34213260/article/details/107513345
