# Rm: cannot remove '/var/run/postgresql': Directory not empty

**URL:** <https://meta.discourse.org/t/rm-cannot-remove-var-run-postgresql-directory-not-empty/257046>\
**Category:** Self-hosting\
**Created:** [March 4, 2023, 12:09pm UTC](https://meta.discourse.org/t/rm-cannot-remove-var-run-postgresql-directory-not-empty/257046 "2023-03-04T12:09:32Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [March 6, 2023, 2:55pm UTC](https://meta.discourse.org/t/rm-cannot-remove-var-run-postgresql-directory-not-empty/257046/7 "2023-03-06T14:55:09Z")

</div>

> [@Blechpirat](#):
>
> This worked till I changed daemon.json:

Then that’s your problem. This is a docker issue, not a Discourse issue.

My guess is that it has to do with permissions or the drive not being there somehow.

---

_[View the full topic](https://meta.discourse.org/t/rm-cannot-remove-var-run-postgresql-directory-not-empty/257046)._
