On a test VM in which I have a docker container from which we run psql (client).
The VM name is: vipostgres-db-test2
In order to make a connection to a postgres database , I go inside the container by doing : docker exec .
Once is there I connect to a postgres db by doing:
psql -d kbdb -u kb