I’m trying to follow the guide here https://join-lemmy.org/docs/administration/install_docker.html
I get an error when I run docker compose up -d. It happens after docker outputs ⠹ Container lemmy-postgres-1 Starting
Error response from daemon: failed to create task for container: failed to create shim task: OCI
runtime create failed: runc create failed: unable to start container process: error during container
init: error mounting "/home/user/lemmy/volumes/postgres" to rootfs at "/var/lib/postgresql/data":
change mount propagation through procfd: open o_path procfd: open /var/lib/docker/
overlay2/238f1ac3ed9eac5f9c1fdc9ee1851634765c83da087baccc4dfbf4fcc4316b32/merged/
var/lib/postgresql/data: no such file or directory: unknown
I’m not really sure what this means, and trying all of AIs suggestions didn’t fix it.
I’m kinda new to all of this, so any help would be appreciated.


Are you using postgresql 18? I tried upgrading yesterday from 17.6 and got an identical error message.
Indeed, Postgres 18 introduced some breaking changes and AFAIK Lemmy isn’t compatible with them yet. This will probably be fixed in the next release.
That’d be a relief if that’s the case.
I’ve been getting a bit demoralized trying to figure this out.
Yes, it looks like the supplied docker-compose.yml points to
pgautoupgrade/pgautoupgrade:18-alpinefor the postgres image.