# Launcher cleanup description: images & containers \> 1h

**URL:** https://meta.discourse.org/t/launcher-cleanup-description-images-containers-1h/178201
**Category:** Bug
**Created:** [February 3, 2021, 12:48am UTC](https://meta.discourse.org/t/launcher-cleanup-description-images-containers-1h/178201 "2021-02-03T00:48:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![TallTrees](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/talltrees/32/208620_2.png) [@TallTrees](https://meta.discourse.org/u/TallTrees)
#### Post date: [February 3, 2021, 12:48am UTC](https://meta.discourse.org/t/launcher-cleanup-description-images-containers-1h/178201/1 "2021-02-03T00:48:00Z")

</div>

The launcher help text indicates that cleanup command removes containers that have stopped for \> 24 hours:

> <https://github.com/discourse/discourse_docker/blob/026a664e77844c7b0d67a5609f08e67f1e436d5f/launcher#L15-L15>

But the issued commands filter with _1 hour_, and prune containers _and_ _images_:

> <https://github.com/discourse/discourse_docker/blob/026a664e77844c7b0d67a5609f08e67f1e436d5f/launcher#L238-L239>

Should the help text on line 15 be updated to describe the actual action? Or 1h → 1d perhaps.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 3, 2021, 1:02am UTC](https://meta.discourse.org/t/launcher-cleanup-description-images-containers-1h/178201/2 "2021-02-03T01:02:24Z")

</div>

Sure, make a PR for that.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [February 5, 2021, 5:10am UTC](https://meta.discourse.org/t/launcher-cleanup-description-images-containers-1h/178201/3 "2021-02-05T05:10:05Z")

</div>

Wouldn’t it be safer if we actually changed the code so that it removes containers stopped for \> 24 hours, as indicated by the text? An hour seems pretty aggressive.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 8, 2021, 1:04am UTC](https://meta.discourse.org/t/launcher-cleanup-description-images-containers-1h/178201/4 "2021-02-08T01:04:39Z")

</div>

Fine with that as well! I will just go ahead and push it.

[https://github.com/discourse/discourse\_docker/pull/524](https://github.com/discourse/discourse_docker/pull/524)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 8, 2021, 9:00pm UTC](https://meta.discourse.org/t/launcher-cleanup-description-images-containers-1h/178201/5 "2021-02-08T21:00:51Z")

</div>

This topic was automatically closed after 19 hours. New replies are no longer allowed.
