commands used in docker
# run psql database in docker
sudo docker run --name <container-name> -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password postgres
# find more information about docker containers such as ip, port
sudo docker ps
# log into database server
psql -h <host-address> -p <port> -U <username> --password
# list databases there
\l
# to bring a container up such as postgres, do this
docker start <container-name>