Skip to content

Update docker readme to reflect changes.#1896

Merged
helinwang merged 4 commits into
PaddlePaddle:developfrom
helinwang:update_docker_readme
Apr 26, 2017
Merged

Update docker readme to reflect changes.#1896
helinwang merged 4 commits into
PaddlePaddle:developfrom
helinwang:update_docker_readme

Conversation

@helinwang
Copy link
Copy Markdown
Contributor

No description provided.

@helinwang helinwang requested a review from wangkuiyi April 26, 2017 00:00
Copy link
Copy Markdown
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.

LGTM++

这里`a.py`包含的所有依赖假设都可以在Paddle的运行容器中。如果需要包含更多的依赖、或者需要发布您的应用的镜像,可以编写`Dockerfile`使用`FROM paddledev/paddle:<version>`
创建和发布自己的AI程序镜像。

运行PaddlePaddle书籍
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

可否顺便把“PaddlePaddle书籍”改成“PaddlePaddle Book”?多谢多谢!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -7,80 +7,99 @@ PaddlePaddle目前唯一官方支持的运行的方式是Docker容器。因为Do
PaddlePaddle发布的docker镜像使用说明
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

docker => Docker

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

docker build -t paddle:prod -f build/Dockerfile .

ssh root@localhost -p 2202
以上命令会按照生成的Dockerfile把生成的程序拷贝到生产镜像中并做相应的配置,最终生成名为paddle:prod的生产镜像。
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

这里indentation不够。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done。

- sshd
很多开发者会使用远程的安装有GPU的服务器工作,用户可以使用ssh登录到这台服务器上并执行 :code:`docker exec`进入开发镜像并开始工作,
也可以在开发镜像中启动一个SSHD服务,方便开发者直接登录到镜像中进行开发:
这个镜像包含了Paddle相关的开发工具以及编译和运行环境。用户可以使用开发镜像代替配置本地环境,完成开发,编译,发布,
Copy link
Copy Markdown
Collaborator

@wangkuiyi wangkuiyi Apr 26, 2017

Choose a reason for hiding this comment

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

这里貌似漏掉了如何build 开发镜像?

git clone https://github.com/PaddlePaddle/paddle
cd paddle
docker build -t paddle:dev .

也可以直接使用Dockerhub上我们预先build好的开发镜像 paddlepaddle/paddle:<version>-dev

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

在后面,“通过Docker容器开发PaddlePaddle”这一节。

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

哦。明白了。

@wangkuiyi wangkuiyi mentioned this pull request Apr 26, 2017
@helinwang helinwang merged commit c99bef6 into PaddlePaddle:develop Apr 26, 2017
zhangyuqin1998 pushed a commit to zhangyuqin1998/Paddle that referenced this pull request Feb 20, 2025
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.

2 participants