Docker image of a sample Postgres database.
Building the Docker image:
docker build -t $USER/postgres --name postgres .
Running the container:
docker run --rm -d --name postgres $USER/postgres
Accessing CLI in the container:
docker exec -it postgres psql -U postgres