Celestial bodies

keep getting this error

camper@d0845425b71a:/workspace/project$ psql -U freecodecamp -d postgres
psql: error: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

now sometimes it works and im able to acces my universe db but when i close vscode and reopen conatiner and try doing psql -U -d it gives me the error

Does anything in this post help you out?

CodeRoad help in relational db course - Backend Development - The freeCodeCamp Forum

dont think so bc im running it locally and every time i close my vs code i open vs code i hve to rebould and open but even when i open codestart and it open n i do psql -U -d i get the error

only thing that seemed to work was every ime i close vscode and reopen i have it rebiuld n reopen container then open codstart and pcik celestial bodies, then reset then psql -U -d will work