# 在 Discourse 容器内运行命令？

**URL:** https://meta.discourse.org/t/running-commands-inside-discourse-container/92811
**Category:** Support
**Created:** [2018年七月20日 14:41 UTC](https://meta.discourse.org/t/running-commands-inside-discourse-container/92811 "2018-07-20T14:41:03Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2018年七月22日 11:25 UTC](https://meta.discourse.org/t/running-commands-inside-discourse-container/92811/5 "2018-07-22T11:25:32Z")

</div>

Here’s an example of what I’ve been doing:

```
docker exec -w /var/www/discourse -i app rake api_key:get

```

but having launcher facilitate that seems like a great idea to me.

---

_[View the full topic](https://meta.discourse.org/t/running-commands-inside-discourse-container/92811)._
