# 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:** 3

<div class="post-metadata">

### Author: ![Blechpirat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blechpirat/32/221370_2.png) [@Blechpirat](https://meta.discourse.org/u/Blechpirat)
#### Post date: [March 5, 2023, 12:24pm UTC](https://meta.discourse.org/t/rm-cannot-remove-var-run-postgresql-directory-not-empty/257046/3 "2023-03-05T12:24:32Z")

</div>

Well, while that would totally be like me, this time it’s not that simple:

```plaintext
# sudo -s
# cd /var/discourse/
# docker stop app
Error response from daemon: No such container: app
# docker rm app
Error: No such container: app

```

I think the problem might be that I moved [everything from the old default location from docker images to the new place](https://meta.discourse.org/t/moving-docker-volumes/256942) and now the discourse docker is not able to access the filesystem it expects?

---

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