Skip to content

Commit

Permalink
Modify doc to point the lastest docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
julie committed Jul 24, 2017
1 parent 21b503b commit 5897a1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,29 @@
只需要在命令行窗口里运行:

```bash
docker run -d -p 8888:8888 paddlepaddle/book:0.10.0
docker run -d -p 8888:8888 paddlepaddle/book
```

会从DockerHub.com下载和运行本书的Docker image。阅读和在线编辑本书请在浏览器里访问 http://localhost:8888

如果您访问DockerHub.com很慢,可以试试我们的另一个镜像docker.paddlepaddle.org:

```bash
docker run -d -p 8888:8888 docker.paddlepaddle.org/book:0.10.0
docker run -d -p 8888:8888 docker.paddlepaddle.org/book
```

### 使用GPU训练

本书默认使用CPU训练,若是要使用GPU训练,使用步骤会稍有变化。为了保证GPU驱动能够在镜像里面正常运行,我们推荐使用[nvidia-docker](https://github.com/NVIDIA/nvidia-docker)来运行镜像。请先安装nvidia-docker,之后请运行:

```bash
nvidia-docker run -d -p 8888:8888 paddlepaddle/book:0.10.0-gpu
nvidia-docker run -d -p 8888:8888 paddlepaddle/book:latest-gpu
```

或者使用国内的镜像请运行:

```bash
nvidia-docker run -d -p 8888:8888 docker.paddlepaddle.org/book:0.10.0-gpu
nvidia-docker run -d -p 8888:8888 docker.paddlepaddle.org/book:latest-gpu
```

还需要将以下代码
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ We packed this book, Jupyter, PaddlePaddle, and all dependencies into a Docker i
Just type

```bash
docker run -d -p 8888:8888 paddlepaddle/book:0.10.0
docker run -d -p 8888:8888 paddlepaddle/book

```

This command will download the pre-built Docker image from DockerHub.com and run it in a container. Please direct your Web browser to http://localhost:8888 to read the book.

If you are living in somewhere slow to access DockerHub.com, you might try our mirror server docker.paddlepaddle.org:

```bash
docker run -d -p 8888:8888 docker.paddlepaddle.org/book:0.10.0
docker run -d -p 8888:8888 docker.paddlepaddle.org/book

```

### Training with GPU
Expand All @@ -40,13 +42,15 @@ By default we are using CPU for training, if you want to train with GPU, the ste
To make sure GPU can be successfully used from inside container, please install [nvidia-docker](https://github.com/NVIDIA/nvidia-docker). Then run:

```bash
nvidia-docker run -d -p 8888:8888 paddlepaddle/book:0.10.0-gpu
nvidia-docker run -d -p 8888:8888 paddlepaddle/book:latest-gpu

```

Or you can use the image registry mirror in China:

```bash
nvidia-docker run -d -p 8888:8888 docker.paddlepaddle.org/book:0.10.0-gpu
nvidia-docker run -d -p 8888:8888 docker.paddlepaddle.org/book:latest-gpu

```

Change the code in the chapter that you are reading from
Expand Down

0 comments on commit 5897a1e

Please sign in to comment.