@@ -122,9 +122,9 @@ The general development workflow with Docker and Bazel is as follows:
122122 git clone --recursive https://github.com/paddlepaddle/paddle
123123
124124
125- 2. Build a development Docker image `paddle:dev ` from the source code.
126- This image contains all the development tools and dependencies of
127- PaddlePaddle.
125+ 2. Build a development Docker image :code: `paddle:dev ` from the source
126+ code. This image contains all the development tools and
127+ dependencies of PaddlePaddle.
128128
129129
130130 .. code-block :: bash
@@ -139,14 +139,22 @@ The general development workflow with Docker and Bazel is as follows:
139139
140140 .. code-block :: bash
141141
142- docker run \
143- -d # run the container in background mode \
144- --name paddle # we can run a nginx container to serve documents \
145- -p 2022:22 # so we can SSH into this container \
146- -v $PWD :/paddle # mount the source code \
147- -v $HOME /.cache/bazel:/root/.cache/bazel # mount Bazel cache \
142+ docker run \
143+ -d \
144+ --name paddle \
145+ -p 2022:22 \
146+ -v $PWD :/paddle \
147+ -v $HOME /.cache/bazel:/root/.cache/bazel \
148148 paddle:dev
149149
150+ where :code: `-d ` makes the container running in background,
151+ :code: `--name paddle ` allows us to run a nginx container to serve
152+ documents in this container, :code: `-p 2022:22 ` allows us to SSH
153+ into this container, :code: `-v $PWD:/paddle ` shares the source code
154+ on the host with the container, :code: `-v
155+ $HOME/.cache/bazel:/root/.cache/bazel ` shares Bazel cache on the
156+ host with the container.
157+
1501584. SSH into the container:
151159
152160 .. code-block :: bash
0 commit comments