# Rebuild leaving behind images on plesk

**URL:** <https://meta.discourse.org/t/rebuild-leaving-behind-images-on-plesk/89565>\
**Category:** Self-hosting\
**Created:** [6월 10, 2018, 8:27오후 UTC](https://meta.discourse.org/t/rebuild-leaving-behind-images-on-plesk/89565 "2018-06-10T20:27:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![markusk](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@markusk](https://meta.discourse.org/u/markusk)\
**Post date:** [6월 10, 2018, 8:27오후 UTC](https://meta.discourse.org/t/rebuild-leaving-behind-images-on-plesk/89565/1 "2018-06-10T20:27:41Z")

</div>

it seems ervery rebuild i did left behind a docker image named sha256:xxxxx with about 2,5gb in size on a plesk managed system - is it safe to delete them? is it only /app and /base that’s needed?

tia,  
markus.

 ![38](https://global.discourse-cdn.com/meta/original/3X/7/a/7a0eec4e1bb3b29bcd9ccfdd53b282c580b6ee2b.png)

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [6월 10, 2018, 8:43오후 UTC](https://meta.discourse.org/t/rebuild-leaving-behind-images-on-plesk/89565/2 "2018-06-10T20:43:02Z")

</div>

One of those containers is the one that’s currently running.

Look at the `launcher` script for the commands that make up the `cleanup` command, break them apart, and run them manually after checking that you’re not deleting anything needed by other parts of your system.

---

<div class="post-metadata">

**Author:** ![markusk](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@markusk](https://meta.discourse.org/u/markusk)\
**Post date:** [6월 11, 2018, 6:37오전 UTC](https://meta.discourse.org/t/rebuild-leaving-behind-images-on-plesk/89565/3 "2018-06-11T06:37:01Z")

</div>

> [@riking](#):
>
> Look at the `launcher` script for the commands that make up the `cleanup` command, break them apart, and run them manually after checking that you’re not deleting anything needed by other parts of your system.

not sure what’s meant with ‘breaking appart’ - but i just ran `./launcher -cleanup` which removed all the sha256:s and added an image ‘samsaffron/docker-gc’ .. app still running fine..

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [6월 11, 2018, 6:37오전 UTC](https://meta.discourse.org/t/rebuild-leaving-behind-images-on-plesk/89565/4 "2018-06-11T06:37:52Z")

</div>

Oh, okay. I assumed you had other Docker apps running on the system since you were using a manager.

---

<div class="post-metadata">

**Author:** ![markusk](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@markusk](https://meta.discourse.org/u/markusk)\
**Post date:** [6월 11, 2018, 6:44오전 UTC](https://meta.discourse.org/t/rebuild-leaving-behind-images-on-plesk/89565/5 "2018-06-11T06:44:30Z")

</div>

no, just one discourse instance running on a server that otherwise will only be used for classic webserving.

you think there’s a chance -cleanup would touch non-discourse images as well? (just for future reference)
