# Less than 5GB of disk space, can't upgrade Discourse

**URL:** <https://meta.discourse.org/t/less-than-5gb-of-disk-space-cant-upgrade-discourse/107011>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [January 20, 2019, 9:58am UTC](https://meta.discourse.org/t/less-than-5gb-of-disk-space-cant-upgrade-discourse/107011 "2019-01-20T09:58:44Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ssvenn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ssvenn/32/86740_2.png) [@ssvenn](https://meta.discourse.org/u/ssvenn)\
**Post date:** [January 20, 2019, 11:04am UTC](https://meta.discourse.org/t/less-than-5gb-of-disk-space-cant-upgrade-discourse/107011/7 "2019-01-20T11:04:11Z")

</div>

ok, that’s not your problem then. Only one container and only 0.5MB of logs.

if you run du -sh \* again in the / top directory maybe you will get a better picture of where the space has gone. I highly recommend ncdu to make it easier ( [https://dev.yorhel.nl/ncdu](https://dev.yorhel.nl/ncdu) )

on my test instance docker uses about 8GB on images, check out [Prune unused Docker objects | Docker Docs](https://docs.docker.com/config/pruning/) for help on how to clean that up.

`docker image prune -a` usually frees up a lot of space for me, you might have to `docker rm app` to delete your old Discourse app container first. If you have lots of forum backups maybe you could download them to your local machine to free up some additional space.

another thing you should check is `docker ps -a` to see if you have any unexpected containers. Sometimes a failed rebuild will leave a dangling container that you have to remove manually.

```
[root@discocent /]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
86981cd18ab1 da251a932851 "/bin/bash -c 'cp -r…" 4 days ago Exited (0) 4 days ago festive_margulis
[root@discocent /]# docker rm festive_margulis
festive_margulis
[root@discocent /]# docker image prune -a
WARNING! This will remove all images without at least one container associated to them.
Are you sure you want to continue? [y/N] y
Deleted Images:
deleted: sha256:da251a9328516f691f0fc3bcdd685e218fa075ae744766996a25b7fe0008b4fc
deleted: sha256:3adfc688f9c999f5f08caae668a722c273311c3f84da33161bf23184218fa74b
deleted: sha256:ea31cd77735ab3d86f3d8903425d4157320b7047a07da4555a4752614c6e5265
deleted: sha256:b375a11cf89e3f124f9151688c2952ef8ca45f5ab5f2bd0751ea3f617708df87
deleted: sha256:cce92fda689ab9033f0b8db214bc63edd1ae3e05831a0f3a9418976d7dc7ccdd
deleted: sha256:d22094bbd65447c59a42c580eaa3a44cee9cd855f00905f59409be21bcefc745
deleted: sha256:b8976847450013f3eb5e9a81a5778f73ed7bef67e6393049712ef17102b4b7b7
deleted: sha256:b8c891f0ffec910a12757d733b178e3f62d81dbbde2b31d3b754071c416108ed

Total reclaimed space: 2.33GB

```

---

_[View the full topic](https://meta.discourse.org/t/less-than-5gb-of-disk-space-cant-upgrade-discourse/107011)._
