ubunt18.04安装nvidia-docker
时间: 2023-10-07 18:07:49 浏览: 134
Ubuntu18.04安装Docker
要在Ubuntu 18.04上安装nvidia-docker,您可以按照以下步骤进行操作:
1. 首先,安装nvidia-container-toolkit并重启docker。您可以使用以下命令完成此操作:
```
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker
```
\[1\]
2. 安装Nvidia-Docker2。您可以使用以下命令完成此操作:
```
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
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
```
\[2\]
3. 执行以下命令以完成nvidia-docker的安装:
```
systemctl daemon-reload
systemctl restart docker
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
curl -s -L https://nvidia.github.io/nvidia-container-runtime/experimental/$distribution/nvidia-container-runtime.list | sudo tee /etc/apt/sources.list.d/nvidia-container-runtime.list
sudo apt-get update
sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker
```
\[3\]
这样,您就成功在Ubuntu 18.04上安装了nvidia-docker。
#### 引用[.reference_title]
- *1* [Ubuntu18.04 安装nvidia-docker](https://blog.csdn.net/sxh615/article/details/114305870)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Ubuntu18.04安装Nvidia-Docker2](https://blog.csdn.net/weixin_43332715/article/details/124422461)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [ubuntu18.04安装nvidia-docker](https://blog.csdn.net/RayChiu757374816/article/details/126629132)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文