Run Postgres in Docker

docker pull postgres
docker run –name dockerPostgresSrv -e POSTGRES_PASSWORD=postgrespassword -d postgres
docker run -it –rm –link dockerPostgresSrv:postgres postgres psql -h postgres -U postgres
—– all postgres commmand are case sensitive
list all databases
\l
\dt
–list tables

Leave a Reply

Your email address will not be published. Required fields are marked *