Skip to content

Commit 86ba1c6

Browse files
committed
Update docker docs
1 parent b5e0bbf commit 86ba1c6

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

doc/getstarted/build_and_install/docker_install_cn.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ PaddlePaddle目前唯一官方支持的运行的方式是Docker容器。因为Do
3232
SSH方式的一个优点是我们可以从多个终端进入容器。比如,一个终端运行vi,另一个终端运行Python。另一个好处是我们可以把PaddlePaddle容器运行在远程服务器上,并在笔记本上通过SSH与其连接。
3333

3434

35-
以上方法在GPU镜像里也能用-只是请不要忘记按装CUDA驱动,以及告诉Docker:
35+
以上方法在GPU镜像里也能用,只是请不要忘记提前在物理机上安装GPU最新驱动。
36+
为了保证GPU驱动能够在镜像里面正常运行,我们推荐使用[nvidia-docker](https://github.com/NVIDIA/nvidia-docker)来运行镜像。
37+
38+
.. code-block:: bash
39+
40+
nvidia-docker run -it --rm paddledev/paddle:0.10.0rc1-gpu /bin/bash
41+
42+
**注意**: 如果使用nvidia-docker存在问题,你也许可以尝试更老的方法,具体如下,但是我们并不推荐这种方法。
3643

3744
.. code-block:: bash
3845

doc/getstarted/build_and_install/docker_install_en.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,15 @@ can run the PaddlePaddle container on a remote server and SSH to it
4343
from a laptop.
4444

4545
Above methods work with the GPU image too -- just please don't forget
46-
to install CUDA driver and let Docker knows about it:
46+
to install GPU driver. To support GPU driver, we recommend to use
47+
[nvidia-docker](https://github.com/NVIDIA/nvidia-docker). Run using
48+
49+
.. code-block:: bash
50+
51+
nvidia-docker run -it --rm paddledev/paddle:0.10.0rc1-gpu /bin/bash
52+
53+
54+
**Note:** If you would have a problem running nvidia-docker, you may try the old method we have used (not recommended).
4755

4856
.. code-block:: bash
4957

0 commit comments

Comments
 (0)