$docker run --name purposedb -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres
$docker ps
docker exec -it 13b4318abb53 bash
$ psql -h localhost -p 5432 -U postgres -W
#Log directly into the psql tool on the container $docker exec -it 61566d09e3bd psql -U postgres -W
CREATE DATABASE test;
\l
\du
#Se users as select SELECT * FROM pg_roles;
#See tables (on current connection) \dt
#Connect to database \c db_name
#exit \q