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

Did you stop the old container?

docker stop app
docker rm app