fn server_options(major: u32, port: u16, socket_dir: &Path) -> String
The socket directory lives inside PGDATA: a shared /tmp is not writable the same way in every container, and its lock file is where that first shows up.