# 使用 Docker 为开发环境安装 Discourse

**URL:** https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009
**Category:** Developer Guides
**Tags:** docker, dev-install, how-to
**Created:** [2018年十一月16日 09:40 UTC](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009 "2018-11-16T09:40:04Z")
**Posts on this page:** 1
**Showing post:** 223

<div class="post-metadata">

### Author: ![tarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tarek/32/124831_2.png) [@tarek](https://meta.discourse.org/u/tarek)
#### Post date: [2022年八月23日 05:43 UTC](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009/223 "2022-08-23T05:43:26Z")

</div>

截至当前的 git master，这不会成功完成。我认为这是核心中的一个错误。要设置并运行开发环境，请在出现错误后执行以下操作：

```plaintext
d/rake db:migrate
d/rake admin:create
d/rails s

```

另外在接下来的两个终端中，输入 `d/ember-cli` 和 `d/mailhog`。

---

_[View the full topic](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009)._
