赞
踩
安装命令如下:
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
也可以使用国内 daocloud 一键安装命令:
curl -sSL https://get.daocloud.io/docker | sh
使用命令
sudo systemctl restart docker
使用命令
sudo chmod 666 /var/run/docker.sock
参考
查找资料后发现需要安装nvidia-container-toolkit即可,使用如下命令
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker
参考:
Docker 使用GPU 错误之Error could not select device driver “” with capabilities: [[gpu]]
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。