提交 176cc7c1 编写于 作者: Y Yu Yang 提交者: GitHub

Merge pull request #828 from PaddlePaddle/fix_docker_doc_bug

Fix bugs in Docker document
...@@ -122,9 +122,9 @@ The general development workflow with Docker and Bazel is as follows: ...@@ -122,9 +122,9 @@ The general development workflow with Docker and Bazel is as follows:
git clone --recursive https://github.com/paddlepaddle/paddle git clone --recursive https://github.com/paddlepaddle/paddle
2. Build a development Docker image `paddle:dev` from the source code. 2. Build a development Docker image :code:`paddle:dev` from the source
This image contains all the development tools and dependencies of code. This image contains all the development tools and
PaddlePaddle. dependencies of PaddlePaddle.
.. code-block:: bash .. code-block:: bash
...@@ -139,14 +139,22 @@ The general development workflow with Docker and Bazel is as follows: ...@@ -139,14 +139,22 @@ The general development workflow with Docker and Bazel is as follows:
.. code-block:: bash .. code-block:: bash
docker run \ docker run \
-d # run the container in background mode \ -d \
--name paddle # we can run a nginx container to serve documents \ --name paddle \
-p 2022:22 # so we can SSH into this container \ -p 2022:22 \
-v $PWD:/paddle # mount the source code \ -v $PWD:/paddle \
-v $HOME/.cache/bazel:/root/.cache/bazel # mount Bazel cache \ -v $HOME/.cache/bazel:/root/.cache/bazel \
paddle:dev paddle:dev
where :code:`-d` makes the container running in background,
:code:`--name paddle` allows us to run a nginx container to serve
documents in this container, :code:`-p 2022:22` allows us to SSH
into this container, :code:`-v $PWD:/paddle` shares the source code
on the host with the container, :code:`-v
$HOME/.cache/bazel:/root/.cache/bazel` shares Bazel cache on the
host with the container.
4. SSH into the container: 4. SSH into the container:
.. code-block:: bash .. code-block:: bash
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册