Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support UBUNTU MIRROR and modify doc #927

Merged
merged 6 commits into from
Dec 20, 2016
Merged

support UBUNTU MIRROR and modify doc #927

merged 6 commits into from
Dec 20, 2016

Conversation

wen-bo-yang
Copy link
Contributor

@wen-bo-yang wen-bo-yang commented Dec 16, 2016

resolved #919
Support UBUNTU MIRROR when build Paddle docker images
Modify paddle/scripts/docker/Dockerfile
Modify paddle/scripts/docker/Dockerfile.gpu
Modify doc/getstarted/build_and_install/docker_install_en.rst

UBUNTU MIRROR
-------------

Building Paddle Docker image hits some wrong with apt-get update, you
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apt-get source errors may occur when building paddle docker image. For example, the default Ubuntu source http://archive.ubuntu.com may not be accessed in China. Thus you may need to replace the default Ubuntu source with another one. 讲清楚点会不会更好些呢?

@dayhaha
Copy link
Contributor

dayhaha commented Dec 16, 2016

然后就是,source的问题我觉得可以在Development Using Docker这里就开始提及
2016-12-16 4 13 25
在下面加上
If you are a developer from China where the default Ubuntu source http://archive.ubuntu.com can't always be accessed. We recommend you to use the following commands to build images:
docker build --build-arg UBUNTU_MIRROR="http://mirrors.163.com" -t paddle:dev -f paddle/scripts/docker/Dockerfile .

Copy link
Collaborator

@wangkuiyi wangkuiyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

关于文档有一个修改建议:

.. code-block:: bash

cd paddle
docker build -t paddle:dev -f paddle/scripts/docker/Dockerfile .

Apt-get source errors may occur when building paddle docker image.
Copy link
Collaborator

@wangkuiyi wangkuiyi Dec 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的是不是想说:

Sometimes docker build might suffer from a slow network connection to the official Ubuntu apt-source servers. In such case, we can specify an apt-source mirror server that is geologically nearer to us. In the following example, we specified an apt-source server that responds fast in China.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得不用强调中国的网络问题,在美国也有时候访问官方源很慢的。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@wangkuiyi wangkuiyi merged commit 37f7595 into PaddlePaddle:develop Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker build 使用默认apt源时,在国内编译很慢,有时会导致出错
3 participants