Multiple Postgres databases in CircleCI 2.0

Is there any more to the error message? This post suggests the file it is looking for is the PID file.

What you could do is to add a custom command line for this image, I think the key is command. Using that you can launch the server in a custom way. Perhaps it is trying to use a socket, and needs to use a TCP port instead?

Alternatively, if you are not wedded to using a secondary container for your database, you could see this post on installing the database server in the primary/build container.