File tree Expand file tree Collapse file tree 1 file changed +7
-17
lines changed
doc/getstarted/build_and_install Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,18 @@ The general development workflow with Docker and Bazel is as follows:
3939 code. This image contains all the development tools and
4040 dependencies of PaddlePaddle.
4141
42-
4342 .. code-block :: bash
4443
4544 cd paddle
4645 docker build -t paddle:dev -f paddle/scripts/docker/Dockerfile .
4746
47+ Apt-get source errors may occur when building paddle docker image.
48+ **You can specify the UBUNTU MIRROR with :code:`--build-arg UBUNTU_MIRROR` like the example below. **
49+
50+ .. code-block :: bash
51+
52+ docker build --build-arg UBUNTU_MIRROR=" http://mirrors.163.com" -t paddle:dev -f paddle/scripts/docker/Dockerfile .
53+
4854
4955 3. Run the image as a container and mounting local source code
5056 directory into the container. This allows us to change the code on
@@ -142,22 +148,6 @@ to install CUDA driver and let Docker knows about it:
142148 export DEVICES=$( \l s /dev/nvidia* | xargs -I{} echo ' --device {}:{}' )
143149 docker run ${CUDA_SO} ${DEVICES} -it paddledev/paddle:gpu-latest
144150
145-
146- UBUNTU MIRROR
147- -------------
148-
149- Building Paddle Docker image hits some wrong with apt-get update, you
150- can use other UBUNTU MIRROR instead of the default
151-
152- .. code-block :: bash
153-
154- cd ~
155- git clone https://github.com/PaddlePaddle/Paddle.git
156- cd Paddle
157- git submodule update --init --recursive
158- docker build --build-arg UBUNTU_MIRROR=" http://mirrors.163.com" -t paddle:cpu-avx -f paddle/scripts/docker/Dockerfile .
159- docker build --build-arg UBUNTU_MIRROR=" http://mirrors.163.com" -t paddle:gpu-avx -f paddle/scripts/docker/Dockerfile.gpu .
160-
161151
162152 Non-AVX Images
163153--------------
You can’t perform that action at this time.
0 commit comments