# Retain launcher command past an image download?

**URL:** <https://meta.discourse.org/t/retain-launcher-command-past-an-image-download/45555>\
**Category:** Bug\
**Created:** [2016 年6 月 11 日 02:51 UTC](https://meta.discourse.org/t/retain-launcher-command-past-an-image-download/45555 "2016-06-11T02:51:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
发布日期： [2016 年6 月 11 日 02:51 UTC](https://meta.discourse.org/t/retain-launcher-command-past-an-image-download/45555/1 "2016-06-11T02:51:58Z")

</div>

Mentioned here: (that’s for pointing it out @fefrei

> [@Git pull needed?](https://meta.discourse.org/t/git-pull-needed/42928/3):
>
> Also, @sam taught the launcher to update itself in March 2015:  
> [re-exec self if we are out of date · discourse/discourse\_docker@098533c · GitHub](https://github.com/discourse/discourse_docker/commit/098533cb0b2bbea0e55ead77f7bc1b8c668965c0)

I just tried this, and after an image pull, `./launcher` forgot what it was supposed to be doing.

```plaintext
<snip>
Status: Downloaded newer image for discourse/discourse:1.3.5
Usage: launcher COMMAND CONFIG [--skip-prereqs] [--docker-args STRING]
Commands:
    start: Start/initialize a container
    stop: Stop a running container
...

```

Full command output here: [discourse-upgrade.log · GitHub](https://gist.github.com/YesThatAllen/0eb80062b913469ae7d415fe1ec73483)

re-running `./launcher rebuild app` worked fine, but if that could have been preserved past the image download, that’d have been extra sweet.

---

_[View the full topic](https://meta.discourse.org/t/retain-launcher-command-past-an-image-download/45555)._
