-
get the container running on port 5000 NOTE: 5000:5432 => map from 5432 to 5000
docker run --name dev-postgres -e POSTGRES_PASSWORD=pwd -p 5000:5432 -d postgres
-
access shell for that container
docker exec -it dev-postgres bash
- enter the psql command line