docker run -itd --gpus all --privileged=true --name lsj -e NVIDIA_DRIVER_CAPABILITIES=compute,utility -e NVIDIA_VISIBLE_DEVICES=all -v /home/lsj:/lsj ubuntu /bin/bash
前“lsj”代表我的容器名,后面的"/home/lsj:"为挂载点宿主机目录,再后面“/lsj”为容器目录,“ubuntu”为镜像名
docker run -itd --gpus all --privileged=true --name lsj -e NVIDIA_DRIVER_CAPABILITIES=compute,utility -e NVIDIA_VISIBLE_DEVICES=all -v /home/lsj:/lsj ubuntu /bin/bash
前“lsj”代表我的容器名,后面的"/home/lsj:"为挂载点宿主机目录,再后面“/lsj”为容器目录,“ubuntu”为镜像名