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

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.