提交 4653728e 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!5046 update readme for docker gpu environment deployment

Merge pull request !5046 from HW_KK/master
...@@ -149,7 +149,23 @@ currently the containerized build options are supported as follows: ...@@ -149,7 +149,23 @@ currently the containerized build options are supported as follows:
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit nvidia-docker2 sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit nvidia-docker2
sudo systemctl restart docker sudo systemctl restart docker
``` ```
Then edit the file daemon.json:
```
$ vim /etc/docker/daemon.json
{
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": []
}
}
}
```
Restart docker again:
```
sudo systemctl daemon-reload
sudo systemctl restart docker
```
Then you can pull and run the latest stable image using the below command: Then you can pull and run the latest stable image using the below command:
``` ```
docker pull mindspore/mindspore-gpu:0.7.0-beta docker pull mindspore/mindspore-gpu:0.7.0-beta
......
![MindSpore标志](docs/MindSpore-logo.png "MindSpore logo") ![MindSpore标志](docs/MindSpore-logo.png "MindSpore logo")
============================================================ ============================================================
[View English](./README.md) [View English](./README.md)
...@@ -148,7 +148,23 @@ MindSpore的Docker镜像托管在[Docker Hub](https://hub.docker.com/r/mindspore ...@@ -148,7 +148,23 @@ MindSpore的Docker镜像托管在[Docker Hub](https://hub.docker.com/r/mindspore
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit nvidia-docker2 sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit nvidia-docker2
sudo systemctl restart docker sudo systemctl restart docker
``` ```
编辑文件 daemon.json:
```
$ vim /etc/docker/daemon.json
{
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": []
}
}
}
```
再次重启docker:
```
sudo systemctl daemon-reload
sudo systemctl restart docker
```
使用以下命令获取并运行最新的稳定镜像: 使用以下命令获取并运行最新的稳定镜像:
``` ```
docker pull mindspore/mindspore-gpu:0.7.0-beta docker pull mindspore/mindspore-gpu:0.7.0-beta
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册