# 我理解得对吗？\`launcher run\` 不使用当前运行的容器？

**URL:** <https://meta.discourse.org/t/did-i-get-this-right-launcher-run-does-not-use-a-current-running-container/154117>\
**Category:** Self-hosting\
**Created:** [2020 年6 月 7 日 18:56 UTC](https://meta.discourse.org/t/did-i-get-this-right-launcher-run-does-not-use-a-current-running-container/154117 "2020-06-07T18:56:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)\
发布日期： [2020 年6 月 7 日 18:56 UTC](https://meta.discourse.org/t/did-i-get-this-right-launcher-run-does-not-use-a-current-running-container/154117/1 "2020-06-07T18:56:16Z")

</div>

在尝试理解 `launcher run` 时，例如：

```bash
groot@galaxy:/var/discourse$ sudo ./launcher run app whoami

```

如果站点正在运行，上述命令不会进入该站点并启动 bash 来执行 `whoami` 命令，而是会基于上次引导的镜像启动一个新容器，然后在该容器中运行该命令。

换句话说，如果我想使用 `launcher` 来了解正在容器中运行的实时站点，我应该使用 `launcher enter` 而不是 `launcher run`。

---

_[View the full topic](https://meta.discourse.org/t/did-i-get-this-right-launcher-run-does-not-use-a-current-running-container/154117)._
