From 576c41b3486864938509dee6a3ecac7b258f7ce5 Mon Sep 17 00:00:00 2001 From: "Wang,Jeff" Date: Mon, 4 Dec 2017 18:57:57 -0800 Subject: [PATCH] Update the incorrect docker commands. Should always specify -v flag. --- doc/howto/dev/write_docs_cn.rst | 4 +++- doc/howto/dev/write_docs_en.rst | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/howto/dev/write_docs_cn.rst b/doc/howto/dev/write_docs_cn.rst index b19918a5f8a..1bc947c260d 100644 --- a/doc/howto/dev/write_docs_cn.rst +++ b/doc/howto/dev/write_docs_cn.rst @@ -28,8 +28,10 @@ PaddlePaddle的文档构建有三种方式。 git clone https://github.com/PaddlePaddle/models.git git clone https://github.com/PaddlePaddle/Mobile.git - docker run -it -p 8000:8000 paddlepaddle/paddlepaddle.org:latest + # Please specify the working directory through -v + docker run -it -p 8000:8000 -v `pwd`:/var/content paddlepaddle/paddlepaddle.org:latest +注意: PaddlePaddle.org 会在 -v (volume) 指定的内容存储库运行命令 之后再用网页连到http://localhost:8000就可以在网页上生成需要的文档 编译后的文件将被存储在工作目录 /.ppo_workspace/content。 diff --git a/doc/howto/dev/write_docs_en.rst b/doc/howto/dev/write_docs_en.rst index ed377375170..b3ef07eb1d0 100644 --- a/doc/howto/dev/write_docs_en.rst +++ b/doc/howto/dev/write_docs_en.rst @@ -29,8 +29,10 @@ The tool uses Docker, please install it on your system. Please check Docker offi git clone https://github.com/PaddlePaddle/models.git git clone https://github.com/PaddlePaddle/Mobile.git - docker run -it -p 8000:8000 paddlepaddle/paddlepaddle.org:latest + # Please specify the working directory through -v + docker run -it -p 8000:8000 -v `pwd`:/var/content paddlepaddle/paddlepaddle.org:latest +Note: PaddlePaddle.org will read the content repos specified in the -v (volume) flag of the docker run command Use a web browser and navigate to http://localhost:8000, click the buttons to compile the documentation The compiled documentations will be stored in /.ppo_workspace/content -- GitLab