postgresql container example
Example 1: docker postgres
$ docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d postgres
Example 2: postgres container psql
psql -h localhost -p 5432
Example 3: postgres container psql
psql -h hostname -U username -d database_name